46 data = ConsumeRandomLengthByteVector(fuzzed_data_provider);
48 auto new_size = fuzzed_data_provider.ConsumeIntegralInRange<size_t>(1, 4096);
49 auto x = fuzzed_data_provider.ConsumeIntegral<uint8_t>();
50 data.resize(new_size, x);
125 for (
size_t i = 0; i < 25; ++i) {
A hasher class for HMAC-SHA-256.
static constexpr size_t OUTPUT_SIZE
A hasher class for HMAC-SHA-512.
static constexpr size_t OUTPUT_SIZE
A hasher class for Bitcoin's 160-bit hash (SHA-256 + RIPEMD-160).
CHash160 & Write(std::span< const unsigned char > input)
void Finalize(std::span< unsigned char > output)
static constexpr size_t OUTPUT_SIZE
A hasher class for Bitcoin's 256-bit hash (double SHA-256).
void Finalize(std::span< unsigned char > output)
static constexpr size_t OUTPUT_SIZE
CHash256 & Write(std::span< const unsigned char > input)
A hasher class for RIPEMD-160.
static constexpr size_t OUTPUT_SIZE
static constexpr size_t OUTPUT_SIZE
A hasher class for SHA-256.
static constexpr size_t OUTPUT_SIZE
A hasher class for SHA-512.
static constexpr size_t OUTPUT_SIZE
General SipHash-2-4 implementation.
T ConsumeIntegralInRange(T min, T max)
static constexpr size_t OUTPUT_SIZE
static const PrecomputedData data
Precomputed COutPoint and CCoins values.
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
uint160 Hash160(const T1 &in1)
Compute the 160-bit hash an object.
uint256 Hash(const T &in1)
Compute the 256-bit hash of an object.
Internal RIPEMD-160 implementation.
Internal SHA-1 implementation.
Internal SHA-256 implementation.
Internal SHA-512 implementation.
void KeccakF(uint64_t(&st)[25])
The Keccak-f[1600] transform.
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)
std::vector< B > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
FuzzedDataProvider & fuzzed_data_provider