pub trait DecryptOperation<'a, C>: Operation<Vec<u8>>where
C: SymmetricCipher,{
// Required methods
fn with_nonce(self, nonce: &'a <C as SymmetricCipher>::Nonce) -> Self;
fn with_aad(self, aad: &'a [u8]) -> Self;
fn decrypt(
self,
ciphertext: &'a <C as SymmetricCipher>::Ciphertext,
) -> Result<Vec<u8>, Error>;
}Expand description
Base trait for decryption operations
Required Methods§
Sourcefn with_nonce(self, nonce: &'a <C as SymmetricCipher>::Nonce) -> Self
fn with_nonce(self, nonce: &'a <C as SymmetricCipher>::Nonce) -> Self
Set the nonce for decryption
Sourcefn decrypt(
self,
ciphertext: &'a <C as SymmetricCipher>::Ciphertext,
) -> Result<Vec<u8>, Error>
fn decrypt( self, ciphertext: &'a <C as SymmetricCipher>::Ciphertext, ) -> Result<Vec<u8>, Error>
Set ciphertext and execute decryption
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".