#include <chacha20.h>
A class for ChaCha20 256-bit stream cipher developed by Daniel J. Bernstein https://cr.yp.to/chacha/chacha-20080128.pdf
◆ ChaCha20() [1/2]
◆ ChaCha20() [2/2]
ChaCha20::ChaCha20 |
( |
const unsigned char * |
key, |
|
|
size_t |
keylen |
|
) |
| |
◆ Crypt()
void ChaCha20::Crypt |
( |
const unsigned char * |
input, |
|
|
unsigned char * |
output, |
|
|
size_t |
bytes |
|
) |
| |
enciphers the message <input> of length <bytes> and write the enciphered representation into <output> Used for encryption and decryption (XOR)
◆ Keystream()
void ChaCha20::Keystream |
( |
unsigned char * |
c, |
|
|
size_t |
bytes |
|
) |
| |
outputs the keystream of size <bytes> into
◆ Seek()
◆ SetIV()
◆ SetKey()
void ChaCha20::SetKey |
( |
const unsigned char * |
key, |
|
|
size_t |
keylen |
|
) |
| |
set key with flexible keylength; 256bit recommended */
◆ input
The documentation for this class was generated from the following files: