Raven Core  3.0.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
ChaCha20 Class Reference

A PRNG class for ChaCha20. More...

#include <chacha20.h>

Public Member Functions

 ChaCha20 ()
 
 ChaCha20 (const unsigned char *key, size_t keylen)
 
void SetKey (const unsigned char *key, size_t keylen)
 
void SetIV (uint64_t iv)
 
void Seek (uint64_t pos)
 
void Output (unsigned char *output, size_t bytes)
 

Private Attributes

uint32_t input [16]
 

Detailed Description

A PRNG class for ChaCha20.

Definition at line 13 of file chacha20.h.

Constructor & Destructor Documentation

◆ ChaCha20() [1/2]

ChaCha20::ChaCha20 ( )

Definition at line 53 of file chacha20.cpp.

◆ ChaCha20() [2/2]

ChaCha20::ChaCha20 ( const unsigned char *  key,
size_t  keylen 
)

Definition at line 58 of file chacha20.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Output()

void ChaCha20::Output ( unsigned char *  output,
size_t  bytes 
)

Definition at line 75 of file chacha20.cpp.

Here is the caller graph for this function:

◆ Seek()

void ChaCha20::Seek ( uint64_t  pos)

Definition at line 69 of file chacha20.cpp.

◆ SetIV()

void ChaCha20::SetIV ( uint64_t  iv)

Definition at line 63 of file chacha20.cpp.

◆ SetKey()

void ChaCha20::SetKey ( const unsigned char *  key,
size_t  keylen 
)

Definition at line 25 of file chacha20.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ input

uint32_t ChaCha20::input[16]
private

Definition at line 16 of file chacha20.h.


The documentation for this class was generated from the following files: