Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
More...
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 68 of file SHA1.H.
◆ SHA1() [1/3]
◆ SHA1() [2/3]
SHA1 |
( |
const std::string & |
str | ) |
|
|
inlineexplicit |
Construct null and append initial std::string.
Definition at line 37 of file SHA1I.H.
References clear().
◆ SHA1() [3/3]
Construct null and append initial string.
Definition at line 44 of file SHA1I.H.
References clear().
◆ clear()
◆ append() [1/3]
Foam::SHA1 & append |
( |
const char * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inline |
Append data for processing.
Definition at line 53 of file SHA1I.H.
◆ append() [2/3]
Append string for processing.
Definition at line 60 of file SHA1I.H.
◆ append() [3/3]
Append string for processing.
Definition at line 67 of file SHA1I.H.
◆ finalise()
Finalised the calculations (normally not needed directly).
Returns false if no bytes were passed for processing
Definition at line 354 of file SHA1.C.
Referenced by SHA1::digest().
◆ digest()
◆ operator==() [1/4]
bool operator== |
( |
const SHA1 & |
rhs | ) |
const |
|
inline |
◆ operator==() [2/4]
Compare digest.
Definition at line 85 of file SHA1I.H.
◆ operator==() [3/4]
bool operator== |
( |
const std::string & |
hexdigits | ) |
const |
|
inline |
Compare digest to (40-byte) text representation (eg, from sha1sum)
An empty string is equivalent to "0000000000000000000000000000000000000000"
Definition at line 91 of file SHA1I.H.
◆ operator==() [4/4]
bool operator== |
( |
const char * |
hexdigits | ) |
const |
|
inline |
Compare digest to (40-byte) text representation (eg, from sha1sum)
A null or empty string is equivalent to "0000000000000000000000000000000000000000"
Definition at line 97 of file SHA1I.H.
◆ operator!=() [1/4]
bool operator!= |
( |
const SHA1 & |
rhs | ) |
const |
|
inline |
◆ operator!=() [2/4]
◆ operator!=() [3/4]
bool operator!= |
( |
const std::string & |
hexdigits | ) |
const |
|
inline |
◆ operator!=() [4/4]
bool operator!= |
( |
const char * |
hexdigits | ) |
const |
|
inline |
◆ operator SHA1Digest()
Convert to a SHA1Digest,.
calculate current digest from appended data
◆ operator<<
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