The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sha1_hash Class Reference

#include <sha1.hpp>

Public Member Functions

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

Private Member Functions

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

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 block(), i, and next().

Member Function Documentation

std::string sha1_hash::display ( )

Display the hash.

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

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

Referenced by sha1_hash().

Member Data Documentation

Uint32 sha1_hash::H0
private

Definition at line 34 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H1
private

Definition at line 34 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H2
private

Definition at line 34 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H3
private

Definition at line 34 of file sha1.hpp.

Referenced by display(), and next().

Uint32 sha1_hash::H4
private

Definition at line 34 of file sha1.hpp.

Referenced by display(), and next().


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