Expand description
Encryption module providing AEAD encryption primitives.
Supports AES-256-GCM (primary) and XChaCha20-Poly1305 (preferred when available).
Structs§
- Encrypt
Options - Encryption options
- Encryption
Result - Result of an encryption operation
- Key
- 256-bit encryption key
Enums§
- Algorithm
- Supported encryption algorithms
Functions§
- decrypt
- Decrypt data using AEAD decryption.
- decrypt_
aes_ gcm - Decrypt data using AES-256-GCM
- decrypt_
bytes - Decrypt data from binary format.
- decrypt_
with_ aad - Decrypt data using AEAD decryption with Additional Authenticated Data.
- decrypt_
xchacha20 - Decrypt data using XChaCha20-Poly1305
- derive_
key_ hkdf - Derive a key using HKDF-SHA256
- derive_
key_ pbkdf2 - Derive a key using PBKDF2-HMAC-SHA256
- encrypt
- Encrypt data using AEAD encryption.
- encrypt_
aes_ gcm - Encrypt data using AES-256-GCM
- encrypt_
xchacha20 - Encrypt data using XChaCha20-Poly1305
- generate_
key - Generate a random 256-bit encryption key