Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
More...
#include <OpenFOAM/SHA1.H>
Detailed Description
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
Adapted from the gnulib implementation.
- See also:
- Foam::SHA1Digest
- Source files
-
Definition at line 69 of file SHA1.H.
List of all members.
Public Member Functions |
| SHA1 () |
| Construct null.
|
| SHA1 (const std::string &) |
| Construct and append initial std::string.
|
| SHA1 (const char *) |
| Construct and append initial string.
|
void | clear () |
| Reset the hashed data before appending more.
|
SHA1 & | append (const char *data, size_t len) |
| Append data for processing.
|
SHA1 & | append (const std::string &) |
| Append string for processing.
|
SHA1 & | append (const char *str) |
| Append string for processing.
|
bool | finalize () |
| Finalized the calculations (normally not needed directly).
|
SHA1Digest | digest () const |
| Calculate current digest from appended data.
|
bool | operator== (const SHA1Digest &) const |
| Equality operator.
|
bool | operator!= (const SHA1Digest &) const |
| Inequality operator.
|
bool | operator== (const SHA1 &) const |
| Equality operator.
|
bool | operator!= (const SHA1 &) const |
| Inequality operator.
|
| operator SHA1Digest () const |
| Convert to a digest, calculate current digest from appended data.
|
Constructor & Destructor Documentation
SHA1 |
( |
const std::string & |
str | ) |
|
|
inlineexplicit |
Member Function Documentation
Foam::SHA1 & append |
( |
const char * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inline |
Append string for processing.
Definition at line 63 of file SHA1I.H.
Append string for processing.
Definition at line 70 of file SHA1I.H.
Finalized the calculations (normally not needed directly).
Returns false if no bytes were passed for processing
Definition at line 374 of file SHA1.C.
Referenced by SHA1::digest().
Equality operator.
Definition at line 82 of file SHA1I.H.
Inequality operator.
Definition at line 88 of file SHA1I.H.
bool operator== |
( |
const SHA1 & |
rhs | ) |
const |
|
inline |
bool operator!= |
( |
const SHA1 & |
rhs | ) |
const |
|
inline |
Convert to a digest, calculate current digest from appended data.
Friends And Related Function Documentation
The documentation for this class was generated from the following files:
- src/OpenFOAM/primitives/hashes/SHA1/SHA1.H
- src/OpenFOAM/primitives/hashes/SHA1/SHA1.C
- src/OpenFOAM/primitives/hashes/SHA1/SHA1I.H