logo
pub struct Decryptor<A, S> where
    A: AeadInPlace,
    S: StreamPrimitive<A>,
    A::NonceSize: Sub<<S as StreamPrimitive<A>>::NonceOverhead>,
    NonceSize<A, S>: ArrayLength<u8>, 
{ /* private fields */ }
Available 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.

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

Available 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.