ChaCha20::ChaCha20

Constructors

Synopses

Declared in <crypto/chacha20.h>

For safety, disallow initialization without key.

ChaCha20() noexcept = delete;
» more...

Initialize a cipher with specified 32-byte key.

ChaCha20(std::span<std::byte const> key) noexcept;
» more...

Parameters

NameDescription
keyThe 32-byte key.