boytacean_encoding/
cipher.rs

1use boytacean_common::error::Error;
2
3pub trait Cipher {
4    type EncryptOptions;
5    type DecryptOptions;
6
7    fn encrypt(data: &mut [u8], key: &[u8], options: &Self::EncryptOptions) -> Result<(), Error>;
8    fn decrypt(data: &mut [u8], key: &[u8], options: &Self::DecryptOptions) -> Result<(), Error>;
9}