aesni-0.2.1 has been yanked.
AES block cipher implementation using AES-NI instruction set.
This crate does not implement any software fallback and does not
automatically check CPUID, so if you are using this crate make sure to run
software on appropriate hardware or to check AES-NI availability using
check_aesni() function with an appropriate software fallback in case of
its unavailability.
Additionally this crate currently requires nigthly Rust compiler due to the
usage of unstable asm and simd features.
Ciphers functionality is accessed using BlockCipher trait from
block-cipher-trait crate.
Usage example
# use GenericArray;
use ;
let key = from_slice;
let mut block = clone_from_slice;
let mut block8 = clone_from_slice;
// Initialize cipher
let cipher = new;
let block_copy = block.clone;
// Encrypt block in-place
cipher.encrypt_block;
// And decrypt it back
cipher.decrypt_block;
assert_eq!;
// We can encrypt 8 blocks simultaneously using
// instruction-level parallelism
let block8_copy = block8.clone;
cipher.encrypt_blocks;
cipher.decrypt_blocks;
assert_eq!;