Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
CSHA1 Class Reference

A hasher class for SHA1. More...

#include <sha1.h>

Public Member Functions

 CSHA1 ()
 
CSHA1Write (const unsigned char *data, size_t len)
 
void Finalize (unsigned char hash[OUTPUT_SIZE])
 
CSHA1Reset ()
 

Static Public Attributes

static const size_t OUTPUT_SIZE = 20
 

Private Attributes

uint32_t s [5]
 
unsigned char buf [64]
 
uint64_t bytes
 

Detailed Description

A hasher class for SHA1.

Definition at line 12 of file sha1.h.

Constructor & Destructor Documentation

CSHA1::CSHA1 ( )

Definition at line 149 of file sha1.cpp.

Member Function Documentation

void CSHA1::Finalize ( unsigned char  hash[OUTPUT_SIZE])

Definition at line 180 of file sha1.cpp.

Here is the call graph for this function:

CSHA1 & CSHA1::Reset ( )

Definition at line 194 of file sha1.cpp.

CSHA1 & CSHA1::Write ( const unsigned char *  data,
size_t  len 
)

Definition at line 154 of file sha1.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned char CSHA1::buf[64]
private

Definition at line 16 of file sha1.h.

uint64_t CSHA1::bytes
private

Definition at line 17 of file sha1.h.

const size_t CSHA1::OUTPUT_SIZE = 20
static

Definition at line 20 of file sha1.h.

uint32_t CSHA1::s[5]
private

Definition at line 15 of file sha1.h.


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