boytacean-encoding 0.11.5

Codecs library for Boytacen.
Documentation
1
2
3
4
5
6
7
8
9
use boytacean_common::error::Error;

pub trait Cipher {
    type EncryptOptions;
    type DecryptOptions;

    fn encrypt(data: &mut [u8], key: &[u8], options: &Self::EncryptOptions) -> Result<(), Error>;
    fn decrypt(data: &mut [u8], key: &[u8], options: &Self::DecryptOptions) -> Result<(), Error>;
}