Struct aesni::Aes128
[−]
[src]
pub struct Aes128 { /* fields omitted */ }
AES-128 block cipher instance
Methods
impl Aes128
[src]
fn new(key: &[u8; 16]) -> Self
Create new AES-128 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 Aes128
[src]
impl Clone for Aes128
[src]
fn clone(&self) -> Aes128
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