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

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

CBC encryption mode

Methods

impl<T: BlockEncryptor, X: PaddingProcessor> CbcEncryptor<T, X>[src]

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

Create a new CBC encryption mode object

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

Trait Implementations

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

Auto Trait Implementations

impl<T, X> Unpin for CbcEncryptor<T, X> where
    T: Unpin,
    X: Unpin

impl<T, X> Sync for CbcEncryptor<T, X> where
    T: Sync,
    X: Sync

impl<T, X> Send for CbcEncryptor<T, X> where
    T: Send,
    X: Send

impl<T, X> UnwindSafe for CbcEncryptor<T, X> where
    T: UnwindSafe,
    X: UnwindSafe

impl<T, X> RefUnwindSafe for CbcEncryptor<T, X> where
    T: RefUnwindSafe,
    X: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]