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

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

CTR Mode

Methods

impl<A: BlockEncryptor> CtrMode<A>

fn new(algo: A, ctr: Vec<u8>) -> CtrMode<A>

Create a new CTR object

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

Trait Implementations

impl<A: BlockEncryptor> SynchronousStreamCipher for CtrMode<A>

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

impl<A: BlockEncryptor> Encryptor for CtrMode<A>

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

impl<A: BlockEncryptor> Decryptor for CtrMode<A>

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