Struct block_modes::Pcbc[][src]

pub struct Pcbc<C: BlockCipher + BlockEncrypt + BlockDecrypt, P: Padding> { /* fields omitted */ }

Propagating Cipher Block Chaining (PCBC) mode instance.

Implementations

impl<C, P> Pcbc<C, P> where
    C: BlockCipher + BlockEncrypt + BlockDecrypt,
    P: Padding
[src]

pub fn new(
    cipher: C,
    iv: &GenericArray<u8, <C as BlockCipher>::BlockSize>
) -> Self
[src]

Initialize PCBC

Trait Implementations

impl<C, P> BlockMode<C, P> for Pcbc<C, P> where
    C: BlockCipher + BlockEncrypt + BlockDecrypt,
    P: Padding
[src]

type IvSize = C::BlockSize

Initialization Vector size.

impl<C: Clone + BlockCipher + BlockEncrypt + BlockDecrypt, P: Clone + Padding> Clone for Pcbc<C, P> where
    C::BlockSize: Clone
[src]

impl<C, P> IvState<C, P> for Pcbc<C, P> where
    C: BlockCipher + BlockEncrypt + BlockDecrypt,
    P: Padding
[src]

Auto Trait Implementations

impl<C, P> RefUnwindSafe for Pcbc<C, P> where
    C: RefUnwindSafe,
    P: RefUnwindSafe,
    <<C as BlockCipher>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe

impl<C, P> Send for Pcbc<C, P> where
    C: Send,
    P: Send

impl<C, P> Sync for Pcbc<C, P> where
    C: Sync,
    P: Sync

impl<C, P> Unpin for Pcbc<C, P> where
    C: Unpin,
    P: Unpin,
    <<C as BlockCipher>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin

impl<C, P> UnwindSafe for Pcbc<C, P> where
    C: UnwindSafe,
    P: UnwindSafe,
    <<C as BlockCipher>::BlockSize as ArrayLength<u8>>::ArrayType: 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> Same<T> for T

type Output = T

Should always be Self

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.