FSChaCha20::Crypt

Encrypt or decrypt a chunk.

Synopsis

Declared in <crypto/chacha20.h>

void
Crypt(
    std::span<std::byte const> input,
    std::span<std::byte> output) noexcept;

Parameters

NameDescription
inputThe message to encrypt or decrypt.
outputOutput buffer receiving the result; must be the same size as input.