Skip to main content

Module xaes_256_gcm

Module xaes_256_gcm 

Source
Expand description

XAES-256-GCM (C2SP).

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.