AEADChaCha20Poly1305

The AEAD_CHACHA20_POLY1305 authenticated encryption algorithm from RFC8439 section 2.8.

Synopsis

Declared in <crypto/chacha20poly1305.h>

class AEADChaCha20Poly1305;

Type Aliases

NameDescription
Nonce96 96-bit nonce type.

Member Functions

NameDescription
AEADChaCha20Poly1305 [constructor]Initialize an AEAD instance with a specified 32-byte key.
Decrypt Decrypt overloads
Encrypt Encrypt overloads
Keystream Get a number of keystream bytes from the underlying stream cipher.
SetKey Switch to another 32-byte key.

Static Data Members

NameDescription
EXPANSION Expansion when encrypting.
KEYLEN Expected size of key argument in constructor.