Go to the documentation of this file.
58 processBytes(
data, len);
67 processBytes(str, strlen(str));
75 processBytes(str.data(), str.size());
82 const std::string& str,
87 if (std::string::npos !=
pos &&
pos < str.length())
89 if (std::string::npos == len ||
pos + len > str.length())
91 len = str.length() -
pos;
94 processBytes(str.data() +
pos, len);
125 return digest().str(prefixed);
131 return digest().
write(os, prefixed);
145 return this->digest() == rhs.
digest();
151 return this->digest() == dig;
157 return this->digest() == hexdigits;
163 return this->digest() == hexdigits;
195 return sha.
write(os);
SHA1 & append(const char *str)
Append data for processing.
std::string str(const bool prefixed=false) const
The digest (40-byte) text representation, optionally with '_' prefix.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
bool operator==(const SHA1 &rhs) const
Equality operator, compares digests.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Ostream & write(Ostream &os, const bool prefixed=false) const
Write digest (40-byte) representation, optionally with '_' prefix.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
SHA1Digest digest() const
Calculate digest from current data.
bool operator!=(const SHA1 &) const
Inequality operator, compares digests.
void clear()
Reset the hashed data before appending more.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
bool finalize()
Finalized the calculations (normally not needed directly).
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Database for solution data, solver performance and other reduced data.
dimensionedScalar pos(const dimensionedScalar &ds)