ChaCha20.setCounter

void setCounter(ulong counter)

Manually sets the counter. Useful for random access or specific protocols.

Parameters

counterThe counter value.