SHA Class Reference
An implementation of SHA1.
More...
#include <sha.h>
List of all members.
|
Public Member Functions |
| SHA () |
virtual | ~SHA () |
void | reset () |
void | finalize () |
const std::string | hex () |
void | feed (const unsigned char *data, unsigned length) |
void | feed (const std::string &data) |
Detailed Description
An implementation of SHA1.
- Author:
- Jakob Schroeter <js@camaya.net>
- Since:
- 0.9
Definition at line 29 of file sha.h.
Constructor & Destructor Documentation
Constructs a new SHA object.
Definition at line 18 of file sha.cpp.
Virtual Destructor.
Definition at line 23 of file sha.cpp.
Member Function Documentation
Resets the internal state.
Definition at line 43 of file sha.cpp.
Finalizes the hash computation.
Definition at line 66 of file sha.cpp.
const std::string hex |
( |
|
) |
|
Returns the message digest in hex notation. Finalizes the hash if finalize() has not been called before.
- Returns:
- The message digest.
Definition at line 48 of file sha.cpp.
void feed |
( |
const unsigned char * |
data, |
|
|
unsigned |
length | |
|
) |
| | |
Provide input to SHA1.
- Parameters:
-
| data | The data to compute the digest of. |
| length | The size of the data in bytes. |
Definition at line 76 of file sha.cpp.
void feed |
( |
const std::string & |
data |
) |
|
Provide input to SHA1.
- Parameters:
-
| data | The data to compute the digest of. |
Definition at line 112 of file sha.cpp.
The documentation for this class was generated from the following files: