Struct aes::Aes128 [−][src]
pub struct Aes128 { /* fields omitted */ }Expand description
AES-128 block cipher instance
Trait Implementations
impl BlockCipher for Aes128[src]
impl BlockCipher for Aes128[src]impl BlockDecrypt for Aes128[src]
impl BlockDecrypt for Aes128[src]fn decrypt_block(&self, block: &mut Block)[src]
fn decrypt_block(&self, block: &mut Block)[src]Decrypt block in-place
fn decrypt_par_blocks(&self, blocks: &mut ParBlocks)[src]
fn decrypt_par_blocks(&self, blocks: &mut ParBlocks)[src]Decrypt several blocks in parallel using instruction level parallelism if possible. Read more
fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])[src]
fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])[src]Decrypt a slice of blocks, leveraging parallelism when available.
impl BlockEncrypt for Aes128[src]
impl BlockEncrypt for Aes128[src]fn encrypt_block(&self, block: &mut Block)[src]
fn encrypt_block(&self, block: &mut Block)[src]Encrypt block in-place
fn encrypt_par_blocks(&self, blocks: &mut ParBlocks)[src]
fn encrypt_par_blocks(&self, blocks: &mut ParBlocks)[src]Encrypt several blocks in parallel using instruction level parallelism if possible. Read more
fn encrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])[src]
fn encrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])[src]Encrypt a slice of blocks, leveraging parallelism when available.
impl NewBlockCipher for Aes128[src]
impl NewBlockCipher for Aes128[src]type KeySize = U16
type KeySize = U16Key size in bytes with which cipher guaranteed to be initialized.
fn new(key: &GenericArray<u8, U16>) -> Self[src]
fn new(key: &GenericArray<u8, U16>) -> Self[src]Create new block cipher instance from key with fixed size.
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>[src]
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>[src]Create new block cipher instance from key with variable size. Read more
Auto Trait Implementations
Blanket Implementations
impl<Alg> BlockDecryptMut for Alg where
Alg: BlockDecrypt, [src]
impl<Alg> BlockDecryptMut for Alg where
Alg: BlockDecrypt, [src]pub fn decrypt_block_mut(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>
)[src]
pub fn decrypt_block_mut(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>
)[src]Decrypt block in-place
impl<Alg> BlockEncryptMut for Alg where
Alg: BlockEncrypt, [src]
impl<Alg> BlockEncryptMut for Alg where
Alg: BlockEncrypt, [src]pub fn encrypt_block_mut(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>
)[src]
pub fn encrypt_block_mut(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>
)[src]Encrypt block in-place
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more