Bitcoin Core  0.15.99
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 12 of file chacha20.h.

Constructor & Destructor Documentation

ChaCha20::ChaCha20 ( )

Definition at line 52 of file chacha20.cpp.

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

Definition at line 57 of file chacha20.cpp.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 74 of file chacha20.cpp.

Here is the caller graph for this function:

void ChaCha20::Seek ( uint64_t  pos)

Definition at line 68 of file chacha20.cpp.

void ChaCha20::SetIV ( uint64_t  iv)

Definition at line 62 of file chacha20.cpp.

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

Definition at line 24 of file chacha20.cpp.

Here is the caller graph for this function:

Member Data Documentation

uint32_t ChaCha20::input[16]
private

Definition at line 15 of file chacha20.h.


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