Versions in this module Expand all Collapse all v0 v0.0.1 Jun 2, 2023 Changes in this version + var ErrNSTPExperiment = qerr.Error(qerr.InvalidCryptoMessageParameter, "NSTP experiment. Unsupported") + type ConnectionState struct + HandshakeComplete bool + PeerCertificates []*x509.Certificate + ServerName string + type Cookie struct + RemoteAddr string + SentTime time.Time + type CookieGenerator struct + func NewCookieGenerator() (*CookieGenerator, error) + func (g *CookieGenerator) DecodeToken(encrypted []byte) (*Cookie, error) + func (g *CookieGenerator) NewToken(raddr net.Addr) ([]byte, error) + type CryptoSetup interface + Open func(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) ([]byte, protocol.EncryptionLevel, error) + func NewCryptoSetup(cryptoStream io.ReadWriter, connID protocol.ConnectionID, remoteAddr net.Addr, ...) (CryptoSetup, error) + func NewCryptoSetupClient(cryptoStream io.ReadWriter, connID protocol.ConnectionID, ...) (CryptoSetup, error) + type CryptoSetupTLS interface + Open1RTT func(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) ([]byte, error) + OpenHandshake func(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) ([]byte, error) + func NewCryptoSetupTLSClient(cryptoStream io.ReadWriter, connID protocol.ConnectionID, config *mint.Config, ...) (CryptoSetupTLS, error) + func NewCryptoSetupTLSServer(cryptoStream io.ReadWriter, connID protocol.ConnectionID, config *mint.Config, ...) (CryptoSetupTLS, error) + type HandshakeMessage struct + Data map[Tag][]byte + Tag Tag + func ParseHandshakeMessage(r io.Reader) (HandshakeMessage, error) + func (h HandshakeMessage) String() string + func (h HandshakeMessage) Write(b *bytes.Buffer) + type KeyDerivationFunction func(crypto.TLSExporter, protocol.Perspective) (crypto.AEAD, error) + type KeyExchangeFunction func() (crypto.KeyExchange, error) + type QuicCryptoKeyDerivationFunction func(forwardSecure bool, sharedSecret, nonces []byte, connID protocol.ConnectionID, ...) (crypto.AEAD, error) + type Sealer interface + Overhead func() int + Seal func(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) []byte + type ServerConfig struct + ID []byte + func NewServerConfig(kex crypto.KeyExchange, certChain crypto.CertChain) (*ServerConfig, error) + func (s *ServerConfig) Get() []byte + func (s *ServerConfig) GetCertsCompressed(sni string, commonSetHashes, compressedHashes []byte) ([]byte, error) + func (s *ServerConfig) Sign(sni string, chlo []byte) ([]byte, error) + type TLSExtensionHandler interface + GetPeerParams func() <-chan TransportParameters + Receive func(mint.HandshakeType, *mint.ExtensionList) error + Send func(mint.HandshakeType, *mint.ExtensionList) error + func NewExtensionHandlerClient(params *TransportParameters, initialVersion protocol.VersionNumber, ...) TLSExtensionHandler + func NewExtensionHandlerServer(params *TransportParameters, supportedVersions []protocol.VersionNumber, ...) TLSExtensionHandler + type Tag uint32 + const TagAEAD + const TagCCRT + const TagCCS + const TagCERT + const TagCFCW + const TagCHLO + const TagCOPT + const TagCSCT + const TagEXPY + const TagICSL + const TagKEXS + const TagMIDS + const TagMSPC + const TagNONC + const TagNONP + const TagNSTP + const TagOBIT + const TagPAD + const TagPDMD + const TagPROF + const TagPRST + const TagPUBS + const TagREJ + const TagRNON + const TagRSEQ + const TagSCFG + const TagSCID + const TagSCLS + const TagSFCW + const TagSHLO + const TagSNI + const TagSNO + const TagSRBF + const TagSTK + const TagSVID + const TagTCID + const TagUAID + const TagVER + const TagXLCT + type TransportParameters struct + ConnectionFlowControlWindow protocol.ByteCount + DisableMigration bool + IdleTimeout time.Duration + MaxBidiStreams uint16 + MaxPacketSize protocol.ByteCount + MaxStreams uint32 + MaxUniStreams uint16 + OmitConnectionID bool + StatelessResetToken []byte + StreamFlowControlWindow protocol.ByteCount + func (p *TransportParameters) String() string