[#ChaCha20Aligned-Seek]
= xref:ChaCha20Aligned.adoc[ChaCha20Aligned]::Seek
:relfileprefix: ../
:mrdocs:

Set the 96&hyphen;bit nonce and 32&hyphen;bit block counter&period;

== Synopsis

Declared in `&lt;crypto&sol;chacha20&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
Seek(
    xref:ChaCha20Aligned/Nonce96.adoc[Nonce96] nonce,
    uint32&lowbar;t block&lowbar;counter) noexcept;
----

== Description

Block&lowbar;counter selects a position to seek to (to byte BLOCKLEN&ast;block&lowbar;counter)&period; After 256 GiB, the block counter overflows, and nonce&period;first is incremented&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nonce*
| The 96&hyphen;bit nonce to seek to&period;
| *block&lowbar;counter*
| The 32&hyphen;bit block counter selecting the position within the stream&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
