5#ifndef BITCOIN_CRYPTO_SHA256_H
6#define BITCOIN_CRYPTO_SHA256_H
A hasher class for SHA-256.
CSHA256 & Write(const uint8_t *data, size_t len)
static const size_t OUTPUT_SIZE
void Finalize(uint8_t hash[OUTPUT_SIZE])
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...
void SHA256D64(uint8_t *output, const uint8_t *input, size_t blocks)
Compute multiple double-SHA256's of 64-byte blobs.
std::string SHA256AutoDetect()
Autodetect the best available SHA256 implementation.