package
0.0.0-20240721055051-015ad48b7b8e
Repository: https://github.com/coffeehc/boot.git
Documentation: pkg.go.dev

# Functions

CounterFromValue creates a new counter given an initial value.
CounterSide returns the connection side (client/server) a sequence counter is associated with.
NewAES128GCM creates an instance that uses aes128gcm for ALTS record.
NewAES128GCMRekey creates an instance that uses aes128gcm with rekeying for ALTS record.
NewConn creates a new secure channel instance given the other party role and handshaking result.
NewInCounter returns an incoming counter initialized to the starting sequence number for the client/server side of a connection.
NewOutCounter returns an outgoing counter initialized to the starting sequence number for the client/server side of a connection.
ParseFramedMsg parse the provided buffer and returns a frame of the format msgLength+msg and any remaining bytes in that buffer.
RegisterProtocol register a ALTS record encryption protocol.
SliceForAppend takes a slice and a requested number of bytes.

# Constants

GcmTagSize is the GCM tag size is the difference in length between plaintext and ciphertext.
MsgLenFieldSize is the byte size of the frame length field of a framed message.

# Variables

ErrAuth occurs on authentication failure.

# Structs

Counter is a 96-bit, little-endian counter.

# Type aliases

KeySizeError signals that the given key does not have the correct size.