Struct miscreant::stream::Decryptor [] [src]

pub struct Decryptor<A: Algorithm> { /* fields omitted */ }

A STREAM decryptor with a 32-bit counter, generalized for any AEAD algorithm

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

Methods

impl<A: Algorithm> Decryptor<A>
[src]

[src]

Create a new STREAM decryptor, initialized with a given key and nonce.

Panics if the key or nonce is the wrong size.

[src]

Decrypt the next message in the stream in-place

[src]

Decrypt the final message in-place, consuming the stream decryptor

[src]

Decrypt the next message in the stream, allocating and returning a Vec<u8> for the plaintext

[src]

Decrypt the next message in the stream, allocating and returning a Vec<u8> for the plaintext