xmppd::sha1 Class Reference

#include <jabberdlib.h>

Inheritance diagram for xmppd::sha1:

xmppd::hash

Public Member Functions

 sha1 ()
void update (const std::string &data)
void update (const std::vector< uint8_t > data)
std::vector< uint8_t > final ()

Detailed Description

the SHA-1 hashing algorithm

Constructor & Destructor Documentation

xmppd::sha1::sha1 (  ) 

construct a SHA-1 hashing instance


Member Function Documentation

void xmppd::sha1::update ( const std::string &  data  )  [virtual]

add data to what the hash should be calculated for

Parameters:
data the data that should get added

Implements xmppd::hash.

Referenced by final(), shaBlock(), and shahash_r().

void xmppd::sha1::update ( const std::vector< uint8_t >  data  ) 

add data to what the hash should be calculated for

Parameters:
data the data that should get added

std::vector< uint8_t > xmppd::sha1::final (  )  [virtual]

signal that all data has been added and request the hash

Note:
use final_hex() to do the same but get a string result (hex version of the result)
Returns:
the hash value (binary)

Implements xmppd::hash.

References update().

Referenced by shaBlock().


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

Generated on Wed Sep 10 01:59:48 2008 for jabberd14 by  doxygen 1.5.5