Go to the documentation of this file.
33 inline Foam::SHA1::SHA1()
39 inline Foam::SHA1::SHA1(
const char* str)
46 inline Foam::SHA1::SHA1(
const std::string& str)
57 processBytes(data, len);
66 processBytes(str, std::char_traits<char>::length(str));
74 processBytes(str.data(), str.length());
81 const std::string& str,
86 if (std::string::npos !=
pos &&
pos < str.length())
88 if (std::string::npos == len ||
pos + len > str.length())
90 len = str.length() -
pos;
93 processBytes(str.data() +
pos, len);
122 inline std::string Foam::SHA1::str(
const bool prefixed)
const
124 return digest().str(prefixed);
130 return digest().write(
os, prefixed);
144 return this->digest() == rhs.digest();
150 return this->digest() == dig;
156 return this->digest() == hexdigits;
162 return this->digest() == hexdigits;
194 return sha.write(
os);
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
OBJstream os(runTime.globalPath()/outputName)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
dimensionedScalar pos(const dimensionedScalar &ds)