Public Member Functions | Private Member Functions | Private Attributes

sha1_hash Class Reference

#include <sha1.hpp>

List of all members.

Public Member Functions

 sha1_hash (const std::string &str)
 Make a hash from a string.
std::string display ()
 Display the hash.

Private Member Functions

void next (Uint8 block[64])
 Process the next 512 bits block.

Private Attributes

Uint32 H0
Uint32 H1
Uint32 H2
Uint32 H3
Uint32 H4

Detailed Description

Definition at line 22 of file sha1.hpp.


Constructor & Destructor Documentation

sha1_hash::sha1_hash ( const std::string &  str  ) 

Make a hash from a string.

Definition at line 51 of file sha1.cpp.

References block(), in, and next().

Here is the call graph for this function:


Member Function Documentation

std::string sha1_hash::display (  ) 

Display the hash.

Definition at line 41 of file sha1.cpp.

References H0, H1, H2, H3, and H4.

void sha1_hash::next ( Uint8  block[64]  )  [private]

Process the next 512 bits block.

Definition at line 112 of file sha1.cpp.

References H0, H1, H2, H3, H4, sha_ch, sha_maj, sha_parity, and sha_rotl.

Referenced by sha1_hash().

Here is the caller graph for this function:


Member Data Documentation

Uint32 sha1_hash::H0 [private]

Definition at line 35 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H1 [private]

Definition at line 35 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H2 [private]

Definition at line 35 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H3 [private]

Definition at line 35 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H4 [private]

Definition at line 35 of file sha1.hpp.

Referenced by display(), and next().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:16:00 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs