Aes256Encryption

Trait Aes256Encryption 

Source
pub trait Aes256Encryption: Sized {
    type Err;

    // Required methods
    fn encrypt<K>(&self, key: K) -> Result<Vec<u8>, Self::Err>
       where K: AsRef<[u8]>;
    fn decrypt<K>(key: K, content: &[u8]) -> Result<Self, Self::Err>
       where K: AsRef<[u8]>;
}

Required Associated Types§

Required Methods§

Source

fn encrypt<K>(&self, key: K) -> Result<Vec<u8>, Self::Err>
where K: AsRef<[u8]>,

Source

fn decrypt<K>(key: K, content: &[u8]) -> Result<Self, Self::Err>
where K: AsRef<[u8]>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§