19 static const uint64_t BUFFER_SIZE = 1000*1000;
24 std::vector<uint8_t> in(BUFFER_SIZE,0);
32 std::vector<uint8_t> in(BUFFER_SIZE,0);
34 CSHA1().
Write(in.data(), in.size()).Finalize(hash);
40 std::vector<uint8_t> in(BUFFER_SIZE,0);
47 std::vector<uint8_t> in(32,0);
50 .
Write(in.data(), in.size())
58 std::vector<uint8_t> in(BUFFER_SIZE,0);
97 BENCHMARK(FastRandom_32bit, 110 * 1000 * 1000);
98 BENCHMARK(FastRandom_1bit, 440 * 1000 * 1000);
CSHA256 & Write(const unsigned char *data, size_t len)
CSHA1 & Write(const unsigned char *data, size_t len)
RIPEMD-160 message digest.
static const size_t OUTPUT_SIZE
BENCHMARK(RIPEMD160, 440)
static const size_t OUTPUT_SIZE
CRIPEMD160 & Write(const unsigned char *data, size_t len)
CSHA512 & Write(const unsigned char *data, size_t len)
uint64_t SipHashUint256(uint64_t k0, uint64_t k1, const uint256 &val)
Optimized SipHash-2-4 implementation for uint256.
static const size_t OUTPUT_SIZE
A hasher class for SHA-512.
static const size_t OUTPUT_SIZE
A hasher class for SHA-256.
A hasher class for RIPEMD-160.