Versions in this module Expand all Collapse all v0 v0.5.0 Apr 11, 2017 Changes in this version + func HashCert(cert []byte) uint64 + type AEAD interface + Open func(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) ([]byte, error) + Seal func(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) []byte + func DeriveKeysAESGCM(forwardSecure bool, sharedSecret, nonces []byte, connID protocol.ConnectionID, ...) (AEAD, error) + func NewAEADAESGCM(otherKey []byte, myKey []byte, otherIV []byte, myIV []byte) (AEAD, error) + type CertChain interface + GetCertsCompressed func(sni string, commonSetHashes, cachedHashes []byte) ([]byte, error) + GetLeafCert func(sni string) ([]byte, error) + SignServerProof func(sni string, chlo []byte, serverConfigData []byte) ([]byte, error) + func NewCertChain(tlsConfig *tls.Config) CertChain + type CertManager interface + GetCommonCertificateHashes func() []byte + GetLeafCert func() []byte + GetLeafCertHash func() (uint64, error) + SetData func([]byte) error + Verify func(hostname string) error + VerifyServerProof func(proof, chlo, serverConfigData []byte) bool + func NewCertManager(tlsConfig *tls.Config) CertManager + type KeyExchange interface + CalculateSharedKey func(otherPublic []byte) ([]byte, error) + PublicKey func() []byte + func NewCurve25519KEX() (KeyExchange, error) + type NullAEAD struct + func (NullAEAD) Open(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) ([]byte, error) + func (NullAEAD) Seal(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) []byte + type StkSource interface + NewToken func(sourceAddress []byte) ([]byte, error) + VerifyToken func(sourceAddress []byte, data []byte) error + func NewStkSource(secret []byte) (StkSource, error)