pub struct Aes128 { /* private fields */ }
Expand description
AES-128 block cipher instance
Trait Implementations
sourceimpl BlockCipher for Aes128
impl BlockCipher for Aes128
type ParBlocks = U8
type ParBlocks = U8
Number of blocks which can be processed in parallel by cipher implementation Read more
sourcefn encrypt_block(&self, block: &mut GenericArray<u8, U16>)
fn encrypt_block(&self, block: &mut GenericArray<u8, U16>)
Encrypt block in-place
sourcefn decrypt_block(&self, block: &mut GenericArray<u8, U16>)
fn decrypt_block(&self, block: &mut GenericArray<u8, U16>)
Decrypt block in-place
sourcefn encrypt_blocks(&self, blocks: &mut GenericArray<GenericArray<u8, U16>, U8>)
fn encrypt_blocks(&self, blocks: &mut GenericArray<GenericArray<u8, U16>, U8>)
Encrypt several blocks in parallel using instruction level parallelism if possible. Read more
sourcefn decrypt_blocks(&self, blocks: &mut GenericArray<GenericArray<u8, U16>, U8>)
fn decrypt_blocks(&self, blocks: &mut GenericArray<GenericArray<u8, U16>, U8>)
Decrypt several blocks in parallel using instruction level parallelism if possible. Read more
sourceimpl NewBlockCipher for Aes128
impl NewBlockCipher for Aes128
sourcefn new(key: &GenericArray<u8, U16>) -> Self
fn new(key: &GenericArray<u8, U16>) -> Self
Create new block cipher instance from key with fixed size.
sourcefn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
Create new block cipher instance from key with variable size. Read more
Auto Trait Implementations
impl RefUnwindSafe for Aes128
impl Send for Aes128
impl Sync for Aes128
impl Unpin for Aes128
impl UnwindSafe for Aes128
Blanket Implementations
sourceimpl<Alg> BlockCipherMut for Alg where
Alg: BlockCipher,
impl<Alg> BlockCipherMut for Alg where
Alg: BlockCipher,
type BlockSize = <Alg as BlockCipher>::BlockSize
type BlockSize = <Alg as BlockCipher>::BlockSize
Size of the block in bytes
sourcepub fn encrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
pub fn encrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
Encrypt block in-place
sourcepub fn decrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
pub fn decrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
Decrypt block in-place
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more