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
Name |
Description |
nonce |
The 96‐bit nonce. |
keystream |
Output buffer receiving the keystream bytes. |
Created with MrDocs