Go to the documentation of this file.
40 int main(
int argc,
char * argv[])
45 std::string str(
"The quick brown fox jumps over the lazy dog");
47 Info<<
SHA1(
"The quick brown fox jumps over the lazy dog") <<
nl;
49 sha.
append(
"The quick brown fox jumps over the lazy dog");
53 sha.
append(
"The quick brown fox jumps over the lazy dog");
62 Info<<
"SHA1 digests are identical\n";
66 Info<<
"SHA1 digests are different\n";
68 Info<<
"lhs:" << sha <<
" rhs:" << shaDig <<
endl;
78 Info<<
"digest1: " << sha_A <<
nl;
79 Info<<
"digest2: " << sha <<
nl;
87 Info<<
"digest3: " << sha <<
nl;
100 os <<
"The quick brown fox jumps over the lazy dog";
110 "parent { Default_Boundary_Region { type zeroGradient; } }"
111 "inlet_1 { value inlet_1; }"
112 "inlet_2 { value inlet_2; }"
113 "inlet_3 { value inlet_3; }"
114 "\"inlet_.*\" { value XXX; }"
SHA1 & append(const char *data, size_t len)
Append data for processing.
int main(int argc, char *argv[])
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
void rewind()
Clear the SHA1 calculation.
Ostream & endl(Ostream &os)
Add newline and flush stream.
The output stream for calculating SHA1 digests.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Input from memory buffer stream.
void clear()
Reset the hashed data before appending more.
SHA1Digest digest() const
Return the SHA1 digest of the dictionary contents.
Foam::SHA1Digest digest()
Return SHA1::Digest for the data processed until now.
void write(Ostream &, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.