Module aead

Source
Expand description

§AEAD

Depending on the platform and available features the most efficient implementation is chosen.

§ChaCha20Poly1305

The HACL implementations are used on all platforms. On x64 CPUs with AVX and AVX2 support the 256-bit SIMD implementation is used. On CPUs with a 128-bit SIMD unit (arm64, or SSE3, SSE4.1, and AVX on x64), the 128-bit SIMD implementation is used. In any other case the portable implementation is used.

Structs§

Aes128Key
Aes256Key
Chacha20Key
Iv
Tag

Enums§

Algorithm
The AEAD Algorithm Identifier.
Error
The AEAD Errors.
Key
An AEAD key.

Functions§

decrypt
AEAD decrypt the ciphertext in ctxt_msg with the key, iv, aad, and tag.
decrypt_detached
AEAD decrypt the ciphertext in ctxt with the key, iv, aad, and tag.
encrypt
AEAD encrypt the message in msg_ctxt with the key, iv and aad.
encrypt_detached
AEAD encrypt the message in msg with the key, iv and aad.