The Pedigree Project 0.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SHA1 Class Reference
+ Collaboration diagram for SHA1:

Public Member Functions

void Reset ()
 
bool Result (unsigned *message_digest_array)
 
void Input (const unsigned char *message_array, unsigned length)
 
void Input (const char *message_array, unsigned length)
 
void Input (unsigned char message_element)
 
void Input (char message_element)
 
SHA1 & operator<< (const char *message_array)
 
SHA1 & operator<< (const unsigned char *message_array)
 
SHA1 & operator<< (const char message_element)
 
SHA1 & operator<< (const unsigned char message_element)
 

Private Member Functions

void ProcessMessageBlock ()
 
void PadMessage ()
 
unsigned CircularShift (int bits, unsigned word)
 

Private Attributes

uint32_t H [5]
 
size_t Length_Low
 
size_t Length_High
 
unsigned char Message_Block [64]
 
int Message_Block_Index
 
bool Computed
 
bool Corrupted
 

Detailed Description

Definition at line 48 of file system/include/pedigree/kernel/utilities/sha1/sha1.h.

Constructor & Destructor Documentation

◆ SHA1()

SHA1::SHA1 ( )

Definition at line 76 of file sha1.cc.

◆ ~SHA1()

SHA1::~SHA1 ( )
virtual

Definition at line 102 of file sha1.cc.

Member Function Documentation

◆ CircularShift()

unsigned SHA1::CircularShift ( int  bits,
unsigned  word 
)
inlineprivate

Definition at line 565 of file sha1.cc.

◆ Input() [1/4]

void SHA1::Input ( char  message_element)

Definition at line 283 of file sha1.cc.

◆ Input() [2/4]

void SHA1::Input ( const char *  message_array,
unsigned  length 
)

Definition at line 243 of file sha1.cc.

◆ Input() [3/4]

void SHA1::Input ( const unsigned char *  message_array,
unsigned  length 
)

Definition at line 192 of file sha1.cc.

◆ Input() [4/4]

void SHA1::Input ( unsigned char  message_element)

Definition at line 263 of file sha1.cc.

◆ operator<<() [1/4]

SHA1 & SHA1::operator<< ( const char *  message_array)

Definition at line 305 of file sha1.cc.

◆ operator<<() [2/4]

SHA1 & SHA1::operator<< ( const char  message_element)

Definition at line 362 of file sha1.cc.

◆ operator<<() [3/4]

SHA1 & SHA1::operator<< ( const unsigned char *  message_array)

Definition at line 334 of file sha1.cc.

◆ operator<<() [4/4]

SHA1 & SHA1::operator<< ( const unsigned char  message_element)

Definition at line 385 of file sha1.cc.

◆ PadMessage()

void SHA1::PadMessage ( )
private

Definition at line 508 of file sha1.cc.

◆ ProcessMessageBlock()

void SHA1::ProcessMessageBlock ( )
private

Definition at line 410 of file sha1.cc.

◆ Reset()

void SHA1::Reset ( )

Definition at line 122 of file sha1.cc.

◆ Result()

bool SHA1::Result ( unsigned *  message_digest_array)

Definition at line 155 of file sha1.cc.

Member Data Documentation

◆ Computed

bool SHA1::Computed
private

◆ Corrupted

bool SHA1::Corrupted
private

◆ H

uint32_t SHA1::H[5]
private

◆ Length_High

size_t SHA1::Length_High
private

◆ Length_Low

size_t SHA1::Length_Low
private

◆ Message_Block

unsigned char SHA1::Message_Block[64]
private

◆ Message_Block_Index

int SHA1::Message_Block_Index
private

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