pub trait Decryptor {
// Required method
fn decrypt<'a>(
&mut self,
data: &'a mut [u8],
) -> Result<&'a mut [u8], Unspecified>;
}Expand description
Opens each message (ciphertext followed by its tag) in place under the next nonce, returning the plaintext.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".