ChaCha20::SetKey

Set 32-byte key, and seek to nonce 0 and block position 0.

Synopsis

Declared in <crypto/chacha20.h>

void
SetKey(std::span<std::byte const> key) noexcept;

Parameters

NameDescription
keyThe 32-byte key.