76 uint32_t bufTotal_[2];
88 void processBlock(
const void *data,
size_t len);
91 void processBytes(
const void *data,
size_t len);
105 inline explicit SHA1(
const char*
str);
108 inline explicit SHA1(
const std::string&
str);
123 inline void append(
const char* data,
size_t len);
126 inline void append(
const std::string&
str);
131 const std::string&
str,
133 size_t len = std::string::npos
144 inline std::string
str(
const bool prefixed=
false)
const;
165 inline bool operator==(
const std::string& hexdigits)
const;
170 inline bool operator==(
const char* hexdigits)
const;
179 inline bool operator!=(
const std::string& hexdigits)
const;
182 inline bool operator!=(
const char* hexdigits)
const;
Ostream & write(Ostream &os, const bool prefixed=false) const
Write digest (40-byte) representation, optionally with '_' prefix.
std::string str(const bool prefixed=false) const
The digest (40-byte) text representation, optionally with '_' prefix.
void clear() noexcept
Reset the hashed data before appending more.
bool operator==(const SHA1 &rhs) const
Equality operator, compares digests.
dimensionedScalar pos(const dimensionedScalar &ds)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
bool operator!=(const SHA1 &) const
Inequality operator, compares digests.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const dimensionedScalar c
Speed of light in a vacuum.
void append(char c)
Append single character.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
SHA1Digest digest() const
Calculate digest from current data.
bool finalize()
Finalized the calculations (normally not needed directly).