Struct aead::stream::Decryptor[][src]

pub struct Decryptor<A, S> where
    A: AeadInPlace,
    S: StreamPrimitive<A>,
    A::NonceSize: Sub<<S as StreamPrimitive<A>>::NonceOverhead>,
    NonceSize<A, S>: ArrayLength<u8>, 
{ /* fields omitted */ }
This is supported on crate feature stream only.
Expand description

Stateful STREAM object which can decrypt AEAD messages one-at-a-time.

This corresponds to the 𝒟 STREAM decryptor object as defined in the paper Online Authenticated-Encryption and its Nonce-Reuse Misuse-Resistance.

Implementations

Create a 𝒟 STREAM decryptor object from the given AEAD key and nonce.

Create a 𝒟 STREAM decryptor object from the given AEAD primitive.

Create a 𝒟 STREAM decryptor object from the given STREAM primitive.

This is supported on crate feature alloc only.

Use the underlying AEAD to decrypt the next AEAD message in this STREAM, returning the result as a Vec.

Use the underlying AEAD to decrypt the next AEAD message in this STREAM in-place.

This is supported on crate feature alloc only.

Use the underlying AEAD to decrypt the last AEAD message in this STREAM, consuming the 𝒟 STREAM decryptor object in order to prevent further use.

Use the underlying AEAD to decrypt the last AEAD message in this STREAM in-place, consuming the 𝒟 STREAM decryptor object in order to prevent further use.

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.