Construct an FSChaCha20 cipher that rekeys every rekey_interval Crypt() calls.

Synopsis

Declared in <crypto/chacha20.h>

FSChaCha20(
    std::span<std::byte const> key,
    uint32_t rekey_interval) noexcept;

Parameters

Name

Description

key

The 32‐byte key.

rekey_interval

The number of Crypt() calls between automatic rekeys.

Created with MrDocs