aesni-0.2.0 has been yanked.
Visit the last successful build:
aesni-0.10.0
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 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 can be also accessed using traits from
block-cipher-trait crate, they are
implemented if impl_traits feature is enabled, which is done by default.
Usage example
let key = ;
let mut block = ;
let mut block8 = ;
// Initialize cipher
let cipher = init;
// Encrypt block in-place
cipher.encrypt;
// And decrypt it back
cipher.decrypt;
assert_eq!;
// We can encrypt 8 blocks simultaneously using instruction-level parallelism
cipher.encrypt8;
cipher.decrypt8;