Unrestricted ChaCha20 cipher.

Synopsis

Declared in <crypto/chacha20.h>

class ChaCha20;

Type Aliases

Name

Description

Nonce96

96‐bit nonce type.

Member Functions

Name

Description

ChaCha20 [constructor]

Constructors

~ChaCha20 [destructor]

Destructor to clean up private memory.

Crypt

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

Keystream

outputs the keystream to out.

Seek

Set the 96‐bit nonce and 32‐bit block counter. See ChaCha20Aligned::Seek.

SetKey

Set 32‐byte key, and seek to nonce 0 and block position 0.

Static Data Members

Name

Description

KEYLEN

Expected key length in constructor and SetKey.

Created with MrDocs