23 #ifndef CRYPTO_SHA512_h
24 #define CRYPTO_SHA512_h
40 void update(
const void *data,
size_t len);
41 void finalize(
void *hash,
size_t len);
45 void resetHMAC(
const void *key,
size_t keyLen);
46 void finalizeHMAC(
const void *key,
size_t keyLen,
void *hash,
size_t hashLen);
Digital signatures based on the elliptic curve modulo 2^255 - 19.
Abstract base class for cryptographic hash algorithms.
void clear()
Clears the hash state, removing all sensitive data, and then resets the hash ready for a new hashing ...
void reset()
Resets the hash ready for a new hashing process.
void finalizeHMAC(const void *key, size_t keyLen, void *hash, size_t hashLen)
Finalizes the HMAC hashing process and returns the hash.
void resetHMAC(const void *key, size_t keyLen)
Resets the hash ready for a new HMAC hashing process.
static const size_t BLOCK_SIZE
Constant for the block size of SHA512.
SHA512()
Constructs a SHA-512 hash object.
virtual ~SHA512()
Destroys this SHA-512 hash object after clearing sensitive information.
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().
static const size_t HASH_SIZE
Constant for the size of the hash output of SHA512.
void processChunk()
Processes a single 1024-bit chunk with the core SHA-512 algorithm.
size_t blockSize() const
Size of the internal block used by the hash algorithm.
void finalize(void *hash, size_t len)
Finalizes the hashing process and returns the hash.