38 void update(
const void *data,
size_t len);
39 void finalize(
void *hash,
size_t len);
43 void resetHMAC(
const void *key,
size_t keyLen);
44 void finalizeHMAC(
const void *key,
size_t keyLen,
void *hash,
size_t hashLen);
Abstract base class for cryptographic hash algorithms.
static const size_t HASH_SIZE
Constant for the size of the hash output of SHA1.
static const size_t BLOCK_SIZE
Constant for the block size of SHA1.
void clear()
Clears the hash state, removing all sensitive data, and then resets the hash ready for a new hashing ...
void finalize(void *hash, size_t len)
Finalizes the hashing process and returns the hash.
size_t hashSize() const
Size of the hash result from finalize().
void finalizeHMAC(const void *key, size_t keyLen, void *hash, size_t hashLen)
Finalizes the HMAC hashing process and returns the hash.
virtual ~SHA1()
Destroys this SHA-1 hash object after clearing sensitive information.
size_t blockSize() const
Size of the internal block used by the hash algorithm.
void reset()
Resets the hash ready for a new hashing process.
void resetHMAC(const void *key, size_t keyLen)
Resets the hash ready for a new HMAC hashing process.
SHA1()
Constructs a SHA-1 hash object.
void update(const void *data, size_t len)
Updates the hash with more data.