#include <MHashPP.h>
Public Types | |
| enum | Command { endhash } |
Public Member Functions | |
| MHashPP (void) | |
| MHashPP (hashid a) | |
| void | init (hashid a) |
| const std::vector< BYTE > & | end (void) |
| MHashPP & | operator<< (std::string v) |
| MHashPP & | operator<< (BitString v) |
| MHashPP & | operator<< (BYTE v) |
| MHashPP & | operator<< (Command c) |
| BitString | getHashBits (void) |
| const std::vector< BYTE > & | getHashBytes (void) |
| unsigned int | getHashSize (void) |
Private Member Functions | |
| std::string | getAlgorithmName (void) |
Static Private Member Functions | |
| std::string | getAlgorithmName (hashid id) |
Private Attributes | |
| bool | hashing |
| true iff HashD contains a legal hash descriptor and data can be passed via << | |
| MHASH | HashD |
| bool | HashBytesValid |
| true iff HashBytes contains a valid hash value | |
| std::vector< BYTE > | HashBytes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get the hash bits
|
|
|
|
|
|
get the hash size
|
|
|
|
|
|
interpret the command c
|
|
|
feed the byte v to the hashing algorithm
|
|
|
feed the BitString v to the hashing algorithm
|
|
|
feed the std::string v to the hashing algorithm
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.7