ChaCha20::Crypt

en/deciphers the message <in_bytes> and write the result into <out_bytes>

Synopsis

Declared in <crypto/chacha20.h>

void
Crypt(
    std::span<std::byte const> in_bytes,
    std::span<std::byte> out_bytes) noexcept;

Description

The size of in_bytes and out_bytes must be equal.

Parameters

NameDescription
in_bytesThe message to encrypt or decrypt.
out_bytesOutput buffer receiving the result; must be the same size as in_bytes.