# Packages
Package subtle provides subtle implementations of the AEAD primitive.
# Functions
AES128CTRHMACSHA256KeyTemplate is a KeyTemplate that generates an AES-CTR-HMAC-AEAD key with the following parameters: - AES key size: 16 bytes - AES CTR IV size: 16 bytes - HMAC key size: 32 bytes - HMAC tag size: 16 bytes - HMAC hash function: SHA256.
AES128GCMKeyTemplate is a KeyTemplate that generates an AES-GCM key with the following parameters: - Key size: 16 bytes - Output prefix type: TINK.
AES256CTRHMACSHA256KeyTemplate is a KeyTemplate that generates an AES-CTR-HMAC-AEAD key with the following parameters: - AES key size: 32 bytes - AES CTR IV size: 16 bytes - HMAC key size: 32 bytes - HMAC tag size: 32 bytes - HMAC hash function: SHA256.
AES256GCMKeyTemplate is a KeyTemplate that generates an AES-GCM key with the following parameters: - Key size: 32 bytes - Output prefix type: TINK.
AES256GCMNoPrefixKeyTemplate is a KeyTemplate that generates an AES-GCM key with the following parameters: - Key size: 32 bytes - Output prefix type: RAW.
ChaCha20Poly1305KeyTemplate is a KeyTemplate that generates a CHACHA20_POLY1305 key.
KMSEnvelopeAEADKeyTemplate is a KeyTemplate that generates a KMSEnvelopeAEAD key for a given KEK in remote KMS.
New returns an AEAD primitive from the given keyset handle.
NewKMSEnvelopeAEAD creates an new instance of KMSEnvelopeAEAD.
NewKMSEnvelopeAEAD2 creates an new instance of KMSEnvelopeAEAD.
NewWithKeyManager returns an AEAD primitive from the given keyset handle and custom key manager.
XChaCha20Poly1305KeyTemplate is a KeyTemplate that generates a XCHACHA20_POLY1305 key.
# Structs
KMSEnvelopeAEAD represents an instance of Envelope AEAD.