Documentation ¶
Index ¶
- Constants
- func AEADAESGCMTLS13(key, fixedNonce []byte) cipher.AEAD
- func CipherSuiteName(id uint16) string
- func HkdfExpandLabel(hash crypto.Hash, secret, hashValue []byte, label string, L int) []byte
- func HkdfExtract(hash crypto.Hash, newSecret, currentSecret []byte) []byte
- 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 CipherSuiteName ¶
CipherSuiteName gets the name of a cipher suite.
func HkdfExpandLabel ¶
HkdfExpandLabel HKDF expands a label
func HkdfExtract ¶
HkdfExtract generates a pseudorandom key for use with Expand from an input secret and an optional independent salt.
func ToTLSConnectionState ¶
func ToTLSConnectionState(cs ConnectionState) tls.ConnectionState
ToTLSConnectionState extracts the tls.ConnectionState
Types ¶
type CertificateRequestInfo ¶
type CertificateRequestInfo = qtls.CertificateRequestInfo
CertificateRequestInfo contains inforamtion 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 ¶
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.