103 core.
update(temp,
sizeof(temp));
185 core.
update(temp,
sizeof(temp));
size_t blockSize() const
Returns the input block size for the sponge function in bytes.
void reset()
Resets the Keccak sponge function ready for a new session.
void pad(uint8_t tag)
Pads the last block of input data to blockSize().
void update(const void *data, size_t size)
Updates the Keccak sponge function with more input data.
void extract(void *data, size_t size)
Extracts data from the Keccak sponge function.
void setCapacity(size_t capacity)
Sets the capacity of the Keccak sponge function in bits.
void clear()
Clears all sensitive data from this object.
void setHMACKey(const void *key, size_t len, uint8_t pad, size_t hashSize)
Sets a HMAC key for a Keccak-based hash algorithm.
void finalizeHMAC(const void *key, size_t keyLen, void *hash, size_t hashLen)
Finalizes the HMAC hashing process and returns the hash.
size_t blockSize() const
Size of the internal block used by the hash algorithm.
void resetHMAC(const void *key, size_t keyLen)
Resets the hash ready for a new HMAC hashing process.
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 update(const void *data, size_t len)
Updates the hash with more data.
virtual ~SHA3_256()
Destroys this hash object after clearing sensitive information.
void finalize(void *hash, size_t len)
Finalizes the hashing process and returns the hash.
SHA3_256()
Constructs a new SHA3-256 hash object.
size_t hashSize() const
Size of the hash result from finalize().
void update(const void *data, size_t len)
Updates the hash with more data.
void finalizeHMAC(const void *key, size_t keyLen, void *hash, size_t hashLen)
Finalizes the HMAC hashing process and returns the hash.
virtual ~SHA3_512()
Destroys this hash object after clearing sensitive information.
void reset()
Resets the hash ready for a new hashing process.
SHA3_512()
Constructs a new SHA3-512 hash object.
void resetHMAC(const void *key, size_t keyLen)
Resets the hash ready for a new HMAC hashing process.
size_t hashSize() const
Size of the hash result from finalize().
void finalize(void *hash, size_t len)
Finalizes the hashing process and returns the hash.
void clear()
Clears the hash state, removing all sensitive data, and then resets the hash ready for a new hashing ...
size_t blockSize() const
Size of the internal block used by the hash algorithm.