Go to the documentation of this file.
95 static inline uint32_t
swapBytes(uint32_t);
100 static inline void set_uint32(
unsigned char *
cp, uint32_t);
119 explicit inline SHA1(
const std::string&);
122 explicit inline SHA1(
const char*);
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.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
void processBytes(const void *data, size_t len)
Process for the next LEN bytes, LEN need not be a multiple of 64.
bool cp(const fileName &src, const fileName &dst)
Copy, recursively if necessary, the source to the destination.
void calcDigest(SHA1Digest &) const
Calculate current digest from appended data.
uint32_t bufTotal_[2]
The total number processed, saved as 64-bit.
bool operator==(const SHA1 &) const
Equality operator, compares digests.
Ostream & operator<<(Ostream &, const edgeMesh &)
static void set_uint32(unsigned char *cp, uint32_t)
Copy the 4-byte value into the memory location pointed to by *dst.
uint32_t bufLen_
The number of elements pending in the buffer.
SHA1Digest digest() const
Calculate current digest from appended data.
void processBlock(const void *data, size_t len)
Process data block-wise, LEN must be a multiple of 64!
bool operator!=(const SHA1 &) const
Inequality operator, compares digests.
bool finalized_
Track if the hashsum has been finalized (added count, etc)
void clear()
Reset the hashed data before appending more.
bool finalize()
Finalized the calculations (normally not needed directly).
uint32_t buffer_[32]
The input processing buffer.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static uint32_t swapBytes(uint32_t)
Swap bytes from internal to network (big-endian) order.
Database for solution data, solver performance and other reduced data.
uint32_t hashsumA_
The hash sums.