Struct vectoreyes::Aes256
source · [−]pub struct Aes256 { /* private fields */ }
Trait Implementations
sourceimpl AesBlockCipher for Aes256
impl AesBlockCipher for Aes256
sourcefn new_with_key(key: U8x32) -> Self
fn new_with_key(key: U8x32) -> Self
Avx2
-
AESIMC xmm, xmm
-
AESKEYGENASSIST xmm, xmm, imm8
sourcefn encrypt_many<const N: usize>(&self, blocks: [U8x16; N]) -> [U8x16; N]where
ArrayUnrolledOps: UnrollableArraySize<N>,
fn encrypt_many<const N: usize>(&self, blocks: [U8x16; N]) -> [U8x16; N]where
ArrayUnrolledOps: UnrollableArraySize<N>,
Avx2
-
AESENC xmm, xmm
-
AESENCLAST xmm, xmm
type Key = U8x32
type EncryptOnly = Aes256EncryptOnly
type EncryptOnly = Aes256EncryptOnly
If you don’t need to use Aes for decryption, it’s faster to only perform key scheduling
for encryption than for both encryption and decryption. Read more
sourceconst BLOCK_COUNT_HINT: usize = 8usize
const BLOCK_COUNT_HINT: usize = 8usize
Running
encrypt_many
with this many blocks will result in the best performance. Read morefn encrypt(&self, block: U8x16) -> U8x16
sourceimpl AesBlockCipherDecrypt for Aes256
impl AesBlockCipherDecrypt for Aes256
sourceimpl From<Aes256> for Aes256EncryptOnly
impl From<Aes256> for Aes256EncryptOnly
sourcefn from(aes: Aes256) -> Aes256EncryptOnly
fn from(aes: Aes256) -> Aes256EncryptOnly
Auto Trait Implementations
impl RefUnwindSafe for Aes256
impl Send for Aes256
impl Sync for Aes256
impl Unpin for Aes256
impl UnwindSafe for Aes256
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more