23 #ifndef CRYPTO_SHA256_h
24 #define CRYPTO_SHA256_h
38 void update(
const void *data,
size_t len);
39 void finalize(
void *hash,
size_t len);
void reset()
Resets the hash ready for a new hashing process.
SHA256()
Constructs a SHA-256 hash object.
Abstract base class for cryptographic hash algorithms.
void finalize(void *hash, size_t len)
Finalizes the hashing process and returns the hash.
virtual ~SHA256()
Destroys this SHA-256 hash object after clearing sensitive information.
size_t blockSize() const
Size of the internal block used by the hash algorithm.
void update(const void *data, size_t len)
Updates the hash with more data.
size_t hashSize() const
Size of the hash result from finalize().
void clear()
Clears the hash state, removing all sensitive data, and then resets the hash ready for a new hashing ...