jabberd14 1.6.2
Public Member Functions
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

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().

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

add data to what the hash should be calculated for

Parameters:
datathe 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:
datathe data that should get added

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