FSChaCha20Poly1305::FSChaCha20Poly1305

Constructors

Synopses

Declared in <crypto/chacha20poly1305.h>

Deleted copy constructor (the secret key must not be duplicated).

FSChaCha20Poly1305(FSChaCha20Poly1305 const& other) = delete;
» more...

Deleted move constructor (the secret key must not be duplicated).

FSChaCha20Poly1305(FSChaCha20Poly1305&& other) = delete;
» more...

Construct an FSChaCha20Poly1305 cipher that rekeys every rekey_interval operations.

FSChaCha20Poly1305(
    std::span<std::byte const> key,
    uint32_t rekey_interval) noexcept;
» more...

Parameters

NameDescription
otherThe instance that would be copied.
keyThe 32-byte key.
rekey_intervalThe number of encrypt/decrypt operations between automatic rekeys.