Documentation ¶
Index ¶
- Constants
- func AEADAESGCMTLS13(key, fixedNonce []byte) cipher.AEAD
- func SetCipherSuite(id uint16) (reset func())
- func ToTLSConnectionState(cs ConnectionState) tls.ConnectionState
- type Alert
- type Certificate
- type CertificateRequestInfo
- type CipherSuiteTLS13
- type ClientHelloInfo
- type ClientSessionCache
- type ClientSessionState
- type Config
- type Conn
- type ConnectionState
- type EncryptionLevel
- type Extension
- type ExtraConfig
- type RecordLayer
Constants ¶
const ( // EncryptionHandshake is the Handshake encryption level EncryptionHandshake = qtls.EncryptionHandshake // Encryption0RTT is the 0-RTT encryption level Encryption0RTT = qtls.Encryption0RTT // EncryptionApplication is the application data encryption level EncryptionApplication = qtls.EncryptionApplication )
Variables ¶
This section is empty.
Functions ¶
func AEADAESGCMTLS13 ¶
AEADAESGCMTLS13 creates a new AES-GCM AEAD for TLS 1.3
func SetCipherSuite ¶ added in v0.34.0
func SetCipherSuite(id uint16) (reset func())
SetCipherSuite modifies the cipherSuiteTLS13 slice of cipher suites inside qtls such that it only contains the cipher suite with the chosen id. The reset function returned resets them back to the original value.
func ToTLSConnectionState ¶
func ToTLSConnectionState(cs ConnectionState) tls.ConnectionState
ToTLSConnectionState extracts the tls.ConnectionState
Types ¶
type CertificateRequestInfo ¶
type CertificateRequestInfo = qtls.CertificateRequestInfo
CertificateRequestInfo contains information about a certificate request.
type CipherSuiteTLS13 ¶
type CipherSuiteTLS13 = qtls.CipherSuiteTLS13
A CipherSuiteTLS13 is a cipher suite for TLS 1.3
func CipherSuiteTLS13ByID ¶
func CipherSuiteTLS13ByID(id uint16) *CipherSuiteTLS13
CipherSuiteTLS13ByID gets a TLS 1.3 cipher suite.
type ClientHelloInfo ¶
type ClientHelloInfo = qtls.ClientHelloInfo
ClientHelloInfo contains information about a ClientHello.
type ClientSessionCache ¶
type ClientSessionCache = qtls.ClientSessionCache
ClientSessionCache is a cache used for session resumption.
type ClientSessionState ¶
type ClientSessionState = qtls.ClientSessionState
ClientSessionState is a state needed for session resumption.
type Conn ¶
type Conn = qtls.Conn
A Conn is a qtls.Conn.
type ConnectionState ¶
type ConnectionState = qtls.ConnectionStateWith0RTT
ConnectionState contains information about the state of the connection.
func GetConnectionState ¶
func GetConnectionState(conn *Conn) ConnectionState
type EncryptionLevel ¶
type EncryptionLevel = qtls.EncryptionLevel
EncryptionLevel is the encryption level of a message.