Bitcoin ABC 0.30.7
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 uint8_t *data, size_t len)
 
void Finalize (uint8_t hash[OUTPUT_SIZE])
 
CSHA1Reset ()
 

Static Public Attributes

static const size_t OUTPUT_SIZE = 20
 

Private Attributes

uint32_t s [5]
 
uint8_t 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::CSHA1 ( )

Definition at line 154 of file sha1.cpp.

Member Function Documentation

◆ Finalize()

void CSHA1::Finalize ( uint8_t  hash[OUTPUT_SIZE])

Definition at line 183 of file sha1.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

CSHA1 & CSHA1::Reset ( )

Definition at line 196 of file sha1.cpp.

◆ Write()

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

Definition at line 158 of file sha1.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ buf

uint8_t CSHA1::buf[64]
private

Definition at line 15 of file sha1.h.

◆ bytes

uint64_t CSHA1::bytes
private

Definition at line 16 of file sha1.h.

◆ OUTPUT_SIZE

const size_t CSHA1::OUTPUT_SIZE = 20
static

Definition at line 19 of file sha1.h.

◆ s

uint32_t CSHA1::s[5]
private

Definition at line 14 of file sha1.h.


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