Skip to main content

Module xchacha20_poly1305

Module xchacha20_poly1305 

Source
Expand description

XChaCha20-Poly1305.

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.