Struct aesni::Aes256
[−]
[src]
pub struct Aes256 { /* fields omitted */ }
AES-256 block cipher instance
Methods
impl Aes256
[src]
fn new(key: &[u8; 32]) -> Self
Create new AES-256 instance with given key
fn encrypt(&self, block: &mut [u8; 16])
Encrypt in-place one 128 bit block
fn decrypt(&self, block: &mut [u8; 16])
Decrypt in-place one 128 bit block
fn encrypt8(&self, blocks: &mut [u8; 128])
Encrypt in-place eight 128 bit blocks (1024 bits in total) using instruction-level parallelism
fn decrypt8(&self, blocks: &mut [u8; 128])
Decrypt in-place eight 128 bit blocks (1024 bits in total) using instruction-level parallelism
Trait Implementations
impl Copy for Aes256
[src]
impl Clone for Aes256
[src]
fn clone(&self) -> Aes256
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more