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

pub struct CbcEncryptor<T, X> {
    // some fields omitted
}

CBC encryption mode

Methods

impl<T: BlockEncryptor, X: PaddingProcessor> CbcEncryptor<T, X>

fn new(algo: T, padding: X, iv: Vec<u8>) -> CbcEncryptor<T, EncPadding<X>>

Create a new CBC encryption mode object

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

Trait Implementations

impl<T: BlockEncryptor, X: PaddingProcessor> Encryptor for CbcEncryptor<T, X>

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