Get a number of keystream bytes from the underlying stream cipher.
Declared in <crypto/chacha20poly1305.h>
void
Keystream(
Nonce96 nonce,
std::span<std::byte> keystream) noexcept;
This is equivalent to Encrypt() with plain set to that many zero bytes, and dropping the last EXPANSION bytes off the result.
a number of keystream bytes from the underlying stream cipher.
| Name | Description |
|---|---|
| nonce | The 96-bit nonce. |
| keystream | Output buffer receiving the keystream bytes. |