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;
SHA1 & append(const char *data, size_t len)
Append data for processing.
friend Ostream & operator<<(Ostream &, const SHA1 &)
Output the digest.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
bool finalise()
Finalised the calculations (normally not needed directly).
void clear()
Reset the hashed data before appending more.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Database for solution and other reduced data.
bool operator!=(const SHA1 &) const
Inequality operator, compares digests.
Ostream & operator<<(Ostream &, const ensightPart &)
bool operator==(const SHA1 &) const
Equality operator, compares digests.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
SHA1Digest digest() const
Calculate current digest from appended data.