Skip to main content

Module aead

Module aead 

Source
Expand description

ChaCha20-Poly1305 over caller buffers.

Functions§

decrypt_in_place
Verifies tag and decrypts buffer in place; fails closed CryptoFailure on tag mismatch — buffer contents are unspecified on failure.
encrypt_in_place
ChaCha20-Poly1305 encrypts buffer in place under (key, nonce, aad), writing the tag to tag_out. Caller-buffered, no allocation.