Versions in this module Expand all Collapse all v1 v1.11.1 Mar 29, 2018 v1.11.0 Mar 27, 2018 Changes in this version + const GcmTagSize + const MsgLenFieldSize + var ErrAuth = errors.New("message authentication failed") + func NewConn(c net.Conn, side core.Side, recordProtocol string, key []byte, ...) (net.Conn, error) + func ParseFramedMsg(b []byte, maxLen uint32) ([]byte, []byte, error) + func RegisterProtocol(protocol string, f ALTSRecordFunc) error + func SliceForAppend(in []byte, n int) (head, tail []byte) + type ALTSRecordCrypto interface + Decrypt func(dst, ciphertext []byte) ([]byte, error) + Encrypt func(dst, plaintext []byte) ([]byte, error) + EncryptionOverhead func() int + func NewAES128GCM(side core.Side, key []byte) (ALTSRecordCrypto, error) + func NewAES128GCMRekey(side core.Side, key []byte) (ALTSRecordCrypto, error) + type ALTSRecordFunc func(s core.Side, keyData []byte) (ALTSRecordCrypto, error) + type KeySizeError int + func (k KeySizeError) Error() string