package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Functions

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.
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.

# Interfaces

ALTSRecordCrypto is the interface for gRPC ALTS record protocol.

# Type aliases

ALTSRecordFunc is a function type for factory functions that create ALTSRecordCrypto instances.
KeySizeError signals that the given key does not have the correct size.