41 #ifndef Foam_SHA1Digest_H 42 #define Foam_SHA1Digest_H 66 std::array<unsigned char, 20> dig_;
78 bool isEqual(
const char* hexdigits, std::size_t len)
const;
110 std::string
str(
const bool prefixed=
false)
const;
131 bool operator==(
const std::string& hexdigits)
const;
144 bool operator!=(
const std::string& hexdigits)
const;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool operator!=(const SHA1Digest &rhs) const
Inequality operator.
Istream & operator>>(Istream &, directionInfo &)
SHA1Digest()
Default construct a zero digest.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool empty() const
Return true if the digest is empty (ie, all zero).
OBJstream os(runTime.globalPath()/outputName)
Database for solution data, solver performance and other reduced data.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & write(Ostream &os, const bool prefixed=false) const
Write (40-byte) text representation, optionally with '_' prefix.
void clear()
Reset the digest to zero.
bool operator==(const SHA1Digest &rhs) const
Equality operator.
std::string str(const bool prefixed=false) const
Return (40-byte) text representation, optionally with '_' prefix.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
Istream & read(Istream &is)
Read (40-byte) text representation.
static const SHA1Digest null
A null digest (ie, all zero)