Expand description
ChaCha20-Poly1305 authenticated encryption
This module implements the ChaCha20-Poly1305 AEAD algorithm as specified in RFC 8439.
§Constant-Time Guarantees
- No variable-length early-returns after authentication is checked.
- Heap allocations and frees are balanced in both success and failure paths.
- Authentication is decided with a branch-free constant-time mask; the same byte-wise loop executes whatever the tag’s validity.
Structs§
- ChaCha20
Poly1305 - ChaCha20-Poly1305 AEAD
- ChaCha20
Poly1305 Decrypt Operation - Operation for ChaCha20Poly1305 decryption operations
- ChaCha20
Poly1305 Encrypt Operation - Operation for ChaCha20Poly1305 encryption operations
Constants§
- CHACH
A20POL Y1305_ KEY_ SIZE - Size constants
- CHACH
A20POL Y1305_ NONCE_ SIZE - Size of the nonce used by ChaCha20Poly1305 in bytes
- CHACH
A20POL Y1305_ TAG_ SIZE - Size of the authentication tag produced by ChaCha20Poly1305 in bytes