Set the 96-bit nonce and 32-bit block counter.
Declared in <crypto/chacha20.h>
void
Seek(
Nonce96 nonce,
uint32_t block_counter) noexcept;
Block_counter selects a position to seek to (to byte BLOCKLEN*block_counter). After 256 GiB, the block counter overflows, and nonce.first is incremented.
| Name | Description |
|---|---|
| nonce | The 96-bit nonce to seek to. |
| block_counter | The 32-bit block counter selecting the position within the stream. |