Trait magma::BlockDecrypt [−][src]
pub trait BlockDecrypt: BlockCipher { pub fn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>); pub fn decrypt_par_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
) { ... } pub fn decrypt_blocks(
&self,
blocks: &mut [GenericArray<u8, Self::BlockSize>]
) { ... } }
Decrypt-only functionality for block ciphers.
Required methods
pub fn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)
[src]
Decrypt block in-place
Provided methods
pub fn decrypt_par_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
)
[src]
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
)
Decrypt several blocks in parallel using instruction level parallelism if possible.
If ParBlocks
equals to 1 it’s equivalent to decrypt_block
.
pub fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
[src]
Decrypt a slice of blocks, leveraging parallelism when available.
Implementors
impl<'_, Alg> BlockDecrypt for &'_ Alg where
Alg: BlockDecrypt,
[src]
impl<'_, Alg> BlockDecrypt for &'_ Alg where
Alg: BlockDecrypt,
[src]pub fn decrypt_block(
&self,
block: &mut GenericArray<u8, <&'_ Alg as BlockCipher>::BlockSize>
)
[src]
&self,
block: &mut GenericArray<u8, <&'_ Alg as BlockCipher>::BlockSize>
)
pub fn decrypt_par_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, <&'_ Alg as BlockCipher>::BlockSize>, <&'_ Alg as BlockCipher>::ParBlocks>
)
[src]
&self,
blocks: &mut GenericArray<GenericArray<u8, <&'_ Alg as BlockCipher>::BlockSize>, <&'_ Alg as BlockCipher>::ParBlocks>
)
pub fn decrypt_blocks(
&self,
blocks: &mut [GenericArray<u8, <&'_ Alg as BlockCipher>::BlockSize>]
)
[src]
&self,
blocks: &mut [GenericArray<u8, <&'_ Alg as BlockCipher>::BlockSize>]
)
impl<S: Sbox> BlockDecrypt for Gost89<S>
[src]
impl<S: Sbox> BlockDecrypt for Gost89<S>
[src]