Struct crypto::blockmodes::CtrModeX8 [-] [+] [src]

pub struct CtrModeX8<A> {
    // some fields omitted
}

CTR Mode that operates on 8 blocks at a time

Methods

impl<A: BlockEncryptorX8> CtrModeX8<A>

fn new(algo: A, ctr: &[u8]) -> CtrModeX8<A>

Create a new CTR object that operates on 8 blocks at a time

fn reset(&mut self, ctr: &[u8])

Trait Implementations

impl<A: BlockEncryptorX8> SynchronousStreamCipher for CtrModeX8<A>

fn process(&mut self, input: &[u8], output: &mut [u8])

impl<A: BlockEncryptorX8> Encryptor for CtrModeX8<A>

fn encrypt(&mut self, input: &mut RefReadBuffer, output: &mut RefWriteBuffer, _: bool) -> Result<BufferResult, SymmetricCipherError>

impl<A: BlockEncryptorX8> Decryptor for CtrModeX8<A>

fn decrypt(&mut self, input: &mut RefReadBuffer, output: &mut RefWriteBuffer, _: bool) -> Result<BufferResult, SymmetricCipherError>