pub trait Decrypt {
type Error: Error;
// Required method
fn decrypt(
&mut self,
buffer: impl Borrow<[u8]>
) -> Result<Vec<u8>, Self::Error>;
}
pub trait Decrypt {
type Error: Error;
// Required method
fn decrypt(
&mut self,
buffer: impl Borrow<[u8]>
) -> Result<Vec<u8>, Self::Error>;
}