Module crypto

Module crypto 

Source
Expand description

Core cryptographic traits and primitives

Structs§

KeyGenParams
Parameters for key generation
RandomNonceGenerator
Nonce generator using a cryptographically secure RNG
RuntimeAead
Runtime AEAD adapter supporting ChaCha20-Poly1305 and AES-GCM
SimpleSymmetricKeyGenerator
A simple symmetric key generator implementation

Enums§

NonceStrategy
Nonce generation strategies

Traits§

AEAD
Trait for AEAD (Authenticated Encryption with Associated Data)
ConstantTime
Trait for constant-time operations
KeyGenerator
Trait for key generation
NonceGenerator
Trait for nonce generation
SecureRandom
Trait for random number generators suitable for cryptographic use