Trait cipher::BlockDecrypt[][src]

pub trait BlockDecrypt: BlockCipher {
    fn decrypt_block(&self, block: &mut Block<Self>);

    fn decrypt_par_blocks(&self, blocks: &mut ParBlocks<Self>) { ... }
fn decrypt_blocks(&self, blocks: &mut [Block<Self>]) { ... } }

Decrypt-only functionality for block ciphers.

Required methods

fn decrypt_block(&self, block: &mut Block<Self>)[src]

Decrypt block in-place

Loading content...

Provided methods

fn decrypt_par_blocks(&self, blocks: &mut ParBlocks<Self>)[src]

Decrypt several blocks in parallel using instruction level parallelism if possible.

If ParBlocks equals to 1 it’s equivalent to decrypt_block.

fn decrypt_blocks(&self, blocks: &mut [Block<Self>])[src]

Decrypt a slice of blocks, leveraging parallelism when available.

Loading content...

Implementations on Foreign Types

impl<Alg: BlockDecrypt> BlockDecrypt for &Alg[src]

Loading content...


Loading content...