Struct aead::stream::StreamBE32[][src]

pub struct StreamBE32<A> where
    A: AeadInPlace,
    A::NonceSize: Sub<U5>,
    <<A as AeadCore>::NonceSize as Sub<U5>>::Output: ArrayLength<u8>, 
{ /* fields omitted */ }
This is supported on crate feature stream only.

The original "Rogaway-flavored" STREAM as described in the paper Online Authenticated-Encryption and its Nonce-Reuse Misuse-Resistance.

Uses a 32-bit big endian counter and 1-byte "last block" flag stored as the last 5-bytes of the AEAD nonce.

Trait Implementations

impl<A> NewStream<A> for StreamBE32<A> where
    A: AeadInPlace,
    A::NonceSize: Sub<U5>,
    <<A as AeadCore>::NonceSize as Sub<U5>>::Output: ArrayLength<u8>, 
[src]

impl<A> StreamPrimitive<A> for StreamBE32<A> where
    A: AeadInPlace,
    A::NonceSize: Sub<U5>,
    <<A as AeadCore>::NonceSize as Sub<U5>>::Output: ArrayLength<u8>, 
[src]

type NonceOverhead = U5

Number of bytes this STREAM primitive requires from the nonce.

type Counter = u32

Type used as the STREAM counter.

Auto Trait Implementations

impl<A> RefUnwindSafe for StreamBE32<A> where
    A: RefUnwindSafe,
    <<<A as AeadCore>::NonceSize as Sub<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>>::Output as ArrayLength<u8>>::ArrayType: RefUnwindSafe
[src]

impl<A> Send for StreamBE32<A> where
    A: Send
[src]

impl<A> Sync for StreamBE32<A> where
    A: Sync
[src]

impl<A> Unpin for StreamBE32<A> where
    A: Unpin,
    <<<A as AeadCore>::NonceSize as Sub<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>>::Output as ArrayLength<u8>>::ArrayType: Unpin
[src]

impl<A> UnwindSafe for StreamBE32<A> where
    A: UnwindSafe,
    <<<A as AeadCore>::NonceSize as Sub<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>>::Output as ArrayLength<u8>>::ArrayType: UnwindSafe
[src]

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, 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.