pub(crate) struct Aes128 {
keys: [u64; 88],
}Expand description
AES-128 block cipher
Fields§
§keys: [u64; 88]Implementations§
Trait Implementations§
Source§impl BlockCipherDecBackend for Aes128
impl BlockCipherDecBackend for Aes128
Source§fn decrypt_block(&self, block: InOut<'_, '_, Block>)
fn decrypt_block(&self, block: InOut<'_, '_, Block>)
Decrypt single inout block.
Source§fn decrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
fn decrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
Decrypt inout blocks in parallel.
Source§fn decrypt_tail_blocks(
&self,
blocks: InOutBuf<'_, '_, Array<u8, Self::BlockSize>>,
)
fn decrypt_tail_blocks( &self, blocks: InOutBuf<'_, '_, Array<u8, Self::BlockSize>>, )
Decrypt buffer of inout blocks. Length of the buffer MUST be smaller
than
Self::ParBlocksSize.Source§fn decrypt_block_inplace(&self, block: &mut Array<u8, Self::BlockSize>)
fn decrypt_block_inplace(&self, block: &mut Array<u8, Self::BlockSize>)
Decrypt single block in-place.
Source§fn decrypt_par_blocks_inplace(
&self,
blocks: &mut Array<Array<u8, Self::BlockSize>, Self::ParBlocksSize>,
)
fn decrypt_par_blocks_inplace( &self, blocks: &mut Array<Array<u8, Self::BlockSize>, Self::ParBlocksSize>, )
Decrypt blocks in parallel in-place.
Source§impl BlockCipherEncBackend for Aes128
impl BlockCipherEncBackend for Aes128
Source§fn encrypt_block(&self, block: InOut<'_, '_, Block>)
fn encrypt_block(&self, block: InOut<'_, '_, Block>)
Encrypt single inout block.
Source§fn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
fn encrypt_par_blocks(&self, blocks: InOut<'_, '_, ParBlocks<Self>>)
Encrypt inout blocks in parallel.
Source§fn encrypt_tail_blocks(
&self,
blocks: InOutBuf<'_, '_, Array<u8, Self::BlockSize>>,
)
fn encrypt_tail_blocks( &self, blocks: InOutBuf<'_, '_, Array<u8, Self::BlockSize>>, )
Encrypt buffer of inout blocks. Length of the buffer MUST be smaller
than
Self::ParBlocksSize.Source§fn encrypt_block_inplace(&self, block: &mut Array<u8, Self::BlockSize>)
fn encrypt_block_inplace(&self, block: &mut Array<u8, Self::BlockSize>)
Encrypt single block in-place.
Source§fn encrypt_par_blocks_inplace(
&self,
blocks: &mut Array<Array<u8, Self::BlockSize>, Self::ParBlocksSize>,
)
fn encrypt_par_blocks_inplace( &self, blocks: &mut Array<Array<u8, Self::BlockSize>, Self::ParBlocksSize>, )
Encrypt blocks in parallel in-place.
Source§impl BlockSizeUser for Aes128
impl BlockSizeUser for Aes128
Source§impl ParBlocksSizeUser for Aes128
impl ParBlocksSizeUser for Aes128
impl Copy for Aes128
Auto Trait Implementations§
impl Freeze for Aes128
impl RefUnwindSafe for Aes128
impl Send for Aes128
impl Sync for Aes128
impl Unpin for Aes128
impl UnsafeUnpin for Aes128
impl UnwindSafe for Aes128
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more