5#ifndef BITCOIN_CRYPTO_HMAC_SHA256_H
6#define BITCOIN_CRYPTO_HMAC_SHA256_H
A hasher class for HMAC-SHA-256.
static const size_t OUTPUT_SIZE
CHMAC_SHA256 & Write(const uint8_t *data, size_t len)
void Finalize(uint8_t hash[OUTPUT_SIZE])
A hasher class for SHA-256.
CSHA256 & Write(const uint8_t *data, size_t len)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...