Skip to main content

Module aes_gcm

Module aes_gcm 

Source
Expand description

AES-256-GCM.

Constants§

KEY_LEN
Key length in bytes.
NONCE_LEN
Nonce length in bytes.
TAG_LEN
Authentication tag length in bytes.

Functions§

decrypt
Verifies and decrypts ciphertext || tag.
encrypt
Encrypts plaintext and authenticates it with aad. Returns ciphertext || tag.