package
0.0.0-20230209052722-fd67b0616c6d
Repository: https://github.com/project-faster/quic-go.git
Documentation: pkg.go.dev
# Functions
GetRetryIntegrityTag calculates the integrity tag on a Retry packet.
NewCryptoSetupClient creates a new crypto setup for the client.
NewCryptoSetupServer creates a new crypto setup for the server.
NewInitialAEAD creates a new AEAD for Initial encryption / decryption.
NewTokenGenerator initializes a new TookenGenerator.
# Variables
ErrDecryptionFailed is returned when the AEAD fails to open the packet.
ErrKeysDropped is returned when an opener or a sealer is requested for an encryption level, but the corresponding keys have already been dropped.
ErrKeysNotYetAvailable is returned when an opener or a sealer is requested for an encryption level, but the corresponding opener has not yet been initialized This can happen when packets arrive out of order.
KeyUpdateInterval is the maximum number of packets we send or receive before initiating a key update.
# Structs
A Token is derived from the client address and can be used to verify the ownership of this address.
A TokenGenerator generates tokens.
# Interfaces
ConnWithVersion is the connection used in the ClientHelloInfo.
CryptoSetup handles the handshake and protecting / unprotecting packets.
LongHeaderOpener opens a long header packet.
LongHeaderSealer seals a long header packet.
ShortHeaderOpener opens a short header packet.
ShortHeaderSealer seals a short header packet.
# Type aliases
ConnectionState contains information about the state of the connection.