Trait aes::BlockDecrypt
source · pub trait BlockDecrypt: BlockCipher {
// Required method
fn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>);
// Provided methods
fn decrypt_par_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
) { ... }
fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>]) { ... }
}
Expand description
Decrypt-only functionality for block ciphers.
Required Methods§
sourcefn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)
fn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)
Decrypt block in-place
Provided Methods§
sourcefn decrypt_par_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
)
fn decrypt_par_blocks( &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
.
sourcefn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
Decrypt a slice of blocks, leveraging parallelism when available.