5#ifndef BITCOIN_CRYPTO_SHA3_H
6#define BITCOIN_CRYPTO_SHA3_H
30 "Rate must be a multiple of 8 bytes");
SHA3_256 & Finalize(Span< uint8_t > output)
static constexpr unsigned RATE_BUFFERS
Sponge rate expressed as a multiple of the buffer size.
SHA3_256 & Write(Span< const uint8_t > data)
static constexpr size_t OUTPUT_SIZE
static constexpr unsigned RATE_BITS
Sponge rate in bits.
A Span is an object that can refer to a contiguous sequence of objects.
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 KeccakF(uint64_t(&st)[25])
The Keccak-f[1600] transform.