Versions in this module Expand all Collapse all v1 v1.7.0 Aug 10, 2022 Changes in this version + const AESGCMIVSize + const AESGCMTagSize + func ValidateAESKeySize(sizeInBytes uint32) error + type AESGCMInsecureIV struct + Key []byte + func NewAESGCMInsecureIV(key []byte, prependIV bool) (*AESGCMInsecureIV, error) + func (i *AESGCMInsecureIV) Decrypt(iv, ciphertext, associatedData []byte) ([]byte, error) + func (i *AESGCMInsecureIV) Encrypt(iv, plaintext, associatedData []byte) ([]byte, error) + type ChaCha20Poly1305InsecureNonce struct + Key []byte + func NewChaCha20Poly1305InsecureNonce(key []byte) (*ChaCha20Poly1305InsecureNonce, error) + func (ca *ChaCha20Poly1305InsecureNonce) Decrypt(nonce, ciphertext, associatedData []byte) ([]byte, error) + func (ca *ChaCha20Poly1305InsecureNonce) Encrypt(nonce, plaintext, associatedData []byte) ([]byte, error)