Versions in this module Expand all Collapse all v0 v0.0.0 Jun 16, 2020 Changes in this version + const KeySize + const MaxNonce + var ErrNonceOverflow = errors.New("nonce is too big") + var ZEROLEN []byte + var ZEROS [KeySize]byte + func Register(s string, f NewCipher) + func SupportedCiphers() string + type AEAD interface + Cipher func() cipher.AEAD + Decrypt func(n uint64, ad, ciphertext []byte) ([]byte, error) + EncodeNonce func(n uint64) []byte + Encrypt func(n uint64, ad, plaintext []byte) ([]byte, error) + InitCipher func(key [KeySize]byte) error + Rekey func() [KeySize]byte + Reset func() + func FromString(s string) (AEAD, error) + type NewCipher func() AEAD