pub(crate) struct Aes256 {
keys: [u64; 120],
}Expand description
AES-256 block cipher
Fields§
§keys: [u64; 120]Implementations§
Trait Implementations§
Source§impl BlockCipherDecBackend for Aes256
impl BlockCipherDecBackend for Aes256
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 Aes256
impl BlockCipherEncBackend for Aes256
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 Aes256
impl BlockSizeUser for Aes256
Source§impl ParBlocksSizeUser for Aes256
impl ParBlocksSizeUser for Aes256
impl Copy for Aes256
Auto Trait Implementations§
impl Freeze for Aes256
impl RefUnwindSafe for Aes256
impl Send for Aes256
impl Sync for Aes256
impl Unpin for Aes256
impl UnsafeUnpin for Aes256
impl UnwindSafe for Aes256
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