AEADChaCha20Poly1305::Keystream

Get a number of keystream bytes from the underlying stream cipher.

Synopsis

Declared in <crypto/chacha20poly1305.h>

void
Keystream(
    Nonce96 nonce,
    std::span<std::byte> keystream) noexcept;

Description

This is equivalent to Encrypt() with plain set to that many zero bytes, and dropping the last EXPANSION bytes off the result.

Return Value

a number of keystream bytes from the underlying stream cipher.

Parameters

NameDescription
nonceThe 96-bit nonce.
keystreamOutput buffer receiving the keystream bytes.