[][src]Struct rcrypto::cipher_mode::OFB

pub struct OFB<C, IV> { /* fields omitted */ }

Implementations

impl<C, IV> OFB<C, IV> where
    C: Cipher,
    IV: InitialVec<C>, 
[src]

pub fn new(c: C, iv: IV) -> Result<Self, CryptoError>[src]

pub fn update_iv(&mut self) -> Result<&Vec<u8>, CryptoError>[src]

pub fn cur_iv(&self) -> Vec<u8>[src]

pub fn set_iv(&mut self, iv: Vec<u8>) -> Result<(), CryptoError>[src]

pub fn encrypt_stream(self) -> OFBEncrypt<C, IV>[src]

pub fn decrypt_stream(self) -> OFBDecrypt<C, IV>[src]

Trait Implementations

impl<C, IV> Cipher for OFB<C, IV> where
    C: Cipher,
    IV: InitialVec<C>, 
[src]

type Output = usize

impl<C, IV> Clone for OFB<C, IV> where
    C: Cipher + Clone,
    IV: InitialVec<C> + Clone
[src]

Auto Trait Implementations

impl<C, IV> !RefUnwindSafe for OFB<C, IV>

impl<C, IV> !Send for OFB<C, IV>

impl<C, IV> !Sync for OFB<C, IV>

impl<C, IV> Unpin for OFB<C, IV> where
    C: Unpin,
    IV: Unpin

impl<C, IV> UnwindSafe for OFB<C, IV> where
    C: UnwindSafe,
    IV: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.