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