6 #ifndef RAVEN_CRYPTO_CHACHA20_H 7 #define RAVEN_CRYPTO_CHACHA20_H 20 ChaCha20(
const unsigned char* key,
size_t keylen);
21 void SetKey(
const unsigned char* key,
size_t keylen);
22 void SetIV(uint64_t iv);
23 void Seek(uint64_t pos);
24 void Output(
unsigned char* output,
size_t bytes);
27 #endif // RAVEN_CRYPTO_CHACHA20_H
void Output(unsigned char *output, size_t bytes)
A PRNG class for ChaCha20.
void SetKey(const unsigned char *key, size_t keylen)