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

Name

Description

input

The message to encrypt or decrypt.

output

Output buffer receiving the result; must be the same size as input.

Created with MrDocs