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 21 of file sha1.hpp.


Constructor & Destructor Documentation

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

Make a hash from a string.

Definition at line 50 of file sha1.cpp.

References next().


Member Function Documentation

std::string sha1_hash::display (  ) 

Display the hash.

Definition at line 39 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 98 of file sha1.cpp.

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

Referenced by sha1_hash().


Member Data Documentation

Uint32 sha1_hash::H0 [private]

Definition at line 28 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H1 [private]

Definition at line 28 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H2 [private]

Definition at line 28 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H3 [private]

Definition at line 28 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H4 [private]

Definition at line 28 of file sha1.hpp.

Referenced by display(), and next().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs