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.
Expand description

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

Create a new STREAM from the given AEAD cipher.

Create a new STREAM with the given key and nonce.

Number of bytes this STREAM primitive requires from the nonce.

Type used as the STREAM counter.

Value to use when incrementing the STREAM counter (i.e. one)

Maximum value of the STREAM counter.

Encrypt an AEAD message in-place at the given position in the STREAM.

Decrypt an AEAD message in-place at the given position in the STREAM.

This is supported on crate feature alloc only.

Encrypt the given plaintext payload, and return the resulting ciphertext as a vector of bytes. Read more

This is supported on crate feature alloc only.

Decrypt the given ciphertext slice, and return the resulting plaintext as a vector of bytes. Read more

Obtain Encryptor for this StreamPrimitive.

Obtain Decryptor for this StreamPrimitive.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.