Expand description
Authenticated Encryption with Associated Data (AEAD) traits
This crate provides an abstract interface for AEAD ciphers, which guarantee both confidentiality and integrity, even from a powerful attacker who is able to execute chosen-ciphertext attacks. The resulting security property, ciphertext indistinguishability, is considered a basic requirement for modern cryptographic implementations.
See RustCrypto/AEADs for cipher implementations which use this trait.
Re-exports§
pub use generic_array;pub use crypto_common::rand_core;
Modules§
Macros§
- impl_
decrypt_ 🔒in_ place  - Implement the 
decrypt_in_placemethod onAeadInPlaceand [AeadMutInPlace], using a macro to gloss over the&selfvs&mut self. 
Structs§
- Error
 - Error type.
 - OsRng
 - A random number generator that retrieves randomness from the operating system.
 - Payload
 - AEAD payloads (message + AAD).
 
Traits§
- Aead
 - Authenticated Encryption with Associated Data (AEAD) algorithm.
 - Aead
Core  - Authenticated Encryption with Associated Data (AEAD) algorithm core trait.
 - Aead
InPlace  - In-place stateless AEAD trait.
 - AeadMut
 - Stateful Authenticated Encryption with Associated Data algorithm.
 - Aead
MutIn Place  - In-place stateful AEAD trait.
 - Buffer
 - In-place encryption/decryption byte buffers.
 - KeyInit
 - Types which can be initialized from key.
 - KeySize
User  - Types which use key for initialization.