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