84 uint32_t bufTotal_[2];
95 static inline uint32_t swapBytes(uint32_t);
100 static inline void set_uint32(
unsigned char *
cp, uint32_t);
103 void processBlock(
const void *data,
size_t len);
106 void processBytes(
const void *data,
size_t len);
119 explicit inline SHA1(
const std::string&);
122 explicit inline SHA1(
const char*);
130 inline SHA1&
append(
const char* data,
size_t len);
157 inline bool operator==(
const std::string& hexdigits)
const;
162 inline bool operator==(
const char* hexdigits)
const;
172 inline bool operator!=(
const std::string& hexdigits)
const;
175 inline bool operator!=(
const char* hexdigits)
const;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
SHA1 & append(const char *data, size_t len)
Append data for processing.
bool operator==(const SHA1 &) const
Equality operator, compares digests.
bool finalise()
Finalised the calculations (normally not needed directly).
friend Ostream & operator<<(Ostream &, const SHA1 &)
Output the digest.
bool operator!=(const SHA1 &) const
Inequality operator, compares digests.
void clear()
Reset the hashed data before appending more.
SHA1Digest digest() const
Calculate current digest from appended data.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)