pub trait Decryptor {
// Required method
fn decrypt(
&self,
data: &[u8],
op: Box<dyn Fn(&[u8]) -> Vec<u8>>,
) -> Result<Vec<u8>, LogError>;
}Expand description
decrypt function abstract
pub trait Decryptor {
// Required method
fn decrypt(
&self,
data: &[u8],
op: Box<dyn Fn(&[u8]) -> Vec<u8>>,
) -> Result<Vec<u8>, LogError>;
}decrypt function abstract