[−][src]Trait tea_soft::block_cipher::BlockCipherMut
Stateful block cipher which permits &mut self
access.
The main use case for this trait is hardware encryption engines which
require &mut self
access to an underlying hardware peripheral.
Associated Types
type BlockSize: ArrayLength<u8>
[src]
Size of the block in bytes
Required methods
pub fn encrypt_block(&mut self, block: &mut GenericArray<u8, Self::BlockSize>)
[src]
Encrypt block in-place
pub fn decrypt_block(&mut self, block: &mut GenericArray<u8, Self::BlockSize>)
[src]
Decrypt block in-place
Implementors
impl<Alg> BlockCipherMut for Alg where
Alg: BlockCipher,
[src]
Alg: BlockCipher,
type BlockSize = <Alg as BlockCipher>::BlockSize
pub fn encrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
[src]
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
pub fn decrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
[src]
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)