pub trait CryptoOperation {
type Output;
// Required methods
fn update(&mut self, data: &[u8]) -> Result<()>;
fn finalize(self) -> Result<Self::Output>;
}Expand description
Common trait for all cryptographic operations
pub trait CryptoOperation {
type Output;
// Required methods
fn update(&mut self, data: &[u8]) -> Result<()>;
fn finalize(self) -> Result<Self::Output>;
}Common trait for all cryptographic operations