MIRA
|
A template base class for hash functions based on std::ostream. More...
#include <security/HashStream.h>
Public Member Functions | |
HashStream () | |
Th default constructor. More... | |
virtual | ~HashStream () |
The destructor. More... | |
virtual void | reset () |
Reset the hash value. More... | |
HashDigest | getDigest () const |
Return the current digest of the hash algorithm. More... | |
HashStream & | operator<< (const char *value) |
Put a C-string in the hash stream. More... | |
HashStream & | operator<< (const std::string &value) |
Put a STL string in the hash stream. More... | |
HashStream & | operator<< (const bool &value) |
Put a bool in the hash stream. More... | |
HashStream & | operator<< (const char &value) |
Put a char in the hash stream. More... | |
HashStream & | operator<< (const uint8 &value) |
Put a uint8 in the hash stream. More... | |
HashStream & | operator<< (const uint16 &value) |
Put a uint16 in the hash stream. More... | |
HashStream & | operator<< (const uint32 &value) |
Put a uint32 in the hash stream. More... | |
HashStream & | operator<< (const uint64 &value) |
Put a uint64 in the hash stream. More... | |
HashStream & | operator<< (const int8 &value) |
Put a int8 in the hash stream. More... | |
HashStream & | operator<< (const int16 &value) |
Put a int16 in the hash stream. More... | |
HashStream & | operator<< (const int32 &value) |
Put a int32 in the hash stream. More... | |
HashStream & | operator<< (const int64 &value) |
Put a int64 in the hash stream. More... | |
HashStream & | operator<< (const float &value) |
Put a float in the hash stream. More... | |
HashStream & | operator<< (const double &value) |
Put a double in the hash stream. More... | |
A template base class for hash functions based on std::ostream.
To use this class, a specialization of this template using a specific implementation of HashStreamBuf has to be used.
Usage example:
|
inline |
Th default constructor.
|
inlinevirtual |
The destructor.
|
inlinevirtual |
Reset the hash value.
|
inline |
Return the current digest of the hash algorithm.
|
inline |
Put a C-string in the hash stream.
|
inline |
Put a STL string in the hash stream.
|
inline |
Put a bool
in the hash stream.
|
inline |
Put a char
in the hash stream.
|
inline |
Put a uint8
in the hash stream.
|
inline |
Put a uint16
in the hash stream.
|
inline |
Put a uint32
in the hash stream.
|
inline |
Put a uint64
in the hash stream.
|
inline |
Put a int8
in the hash stream.
|
inline |
Put a int16
in the hash stream.
|
inline |
Put a int32
in the hash stream.
|
inline |
Put a int64
in the hash stream.
|
inline |
Put a float
in the hash stream.
|
inline |
Put a double
in the hash stream.