pub trait AeadDecryptOperation<'a, A: AeadAlgorithm>: Operation<Vec<u8>> {
// Required methods
fn with_nonce(self, nonce: &'a Nonce<12>) -> Self;
fn with_aad(self, aad: &'a [u8]) -> Self;
fn decrypt(self, ciphertext: &'a [u8]) -> Result<Vec<u8>>;
}Expand description
Trait for decryption operations with AEAD algorithms
Required Methods§
Sourcefn with_nonce(self, nonce: &'a Nonce<12>) -> Self
fn with_nonce(self, nonce: &'a Nonce<12>) -> Self
Set the nonce for decryption
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<'a> AeadDecryptOperation<'a, ChaCha20Poly1305Algorithm> for ChaCha20Poly1305DecryptOperation<'a>
Available on crate feature
alloc only.