Skip to main content

Module crypto

Module crypto 

Source
Expand description

Legacy WFB ChaCha20-Poly1305 compatibility helpers.

Enums§

CryptoError
Error from legacy WFB ChaCha20-Poly1305 helpers.

Constants§

CHACHA20_POLY1305_KEY_LEN
Key length used by the legacy WFB ChaCha20-Poly1305 construction.
CHACHA20_POLY1305_NONCE_LEN
Nonce length used by the legacy WFB ChaCha20-Poly1305 construction.
CHACHA20_POLY1305_TAG_LEN
Authentication tag length used by the legacy WFB construction.

Functions§

decrypt_chacha20poly1305_legacy
Verify and decrypt the legacy WFB ChaCha20-Poly1305 payload shape.
decrypt_chacha20poly1305_legacy_into
Verify and decrypt into a reusable caller-owned buffer.
encrypt_chacha20poly1305_legacy
Encrypt and authenticate using the legacy WFB ChaCha20-Poly1305 shape.