38 virtual void reset() = 0;
39 virtual void update(
const void *data,
size_t len) = 0;
40 virtual void finalize(
void *hash,
size_t len) = 0;
42 virtual void clear() = 0;
virtual size_t blockSize() const =0
Size of the internal block used by the hash algorithm.
virtual void clear()=0
Clears the hash state, removing all sensitive data, and then resets the hash ready for a new hashing ...
Hash()
Constructs a new hash object.
Abstract base class for cryptographic hash algorithms.
virtual void reset()=0
Resets the hash ready for a new hashing process.
virtual size_t hashSize() const =0
Size of the hash result from finalize().
virtual ~Hash()
Destroys this hash object.
virtual void update(const void *data, size_t len)=0
Updates the hash with more data.
virtual void finalize(void *hash, size_t len)=0
Finalizes the hashing process and returns the hash.