ChaCha20Aligned::Crypt

en/deciphers the message <input> and write the result into <output>

Synopsis

Declared in <crypto/chacha20.h>

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

Description

The size of input and output must be equal, and be a multiple of BLOCKLEN.

Parameters

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