20 static const uint64_t BUFFER_SIZE = 1000*1000;
25 std::vector<uint8_t> in(BUFFER_SIZE,0);
33 std::vector<uint8_t> in(BUFFER_SIZE,0);
35 CSHA1().
Write(in.data(), in.size()).Finalize(hash);
41 std::vector<uint8_t> in(BUFFER_SIZE,0);
48 std::vector<uint8_t> in(32,0);
50 for (
int i = 0; i < 1000000; i++) {
51 CSHA256().
Write(in.data(), in.size()).Finalize(in.data());
59 std::vector<uint8_t> in(BUFFER_SIZE,0);
68 for (
int i = 0; i < 1000000; i++) {
79 for (
int i = 0; i < 1000000; i++) {
90 for (
int i = 0; i < 1000000; i++) {
CSHA256 & Write(const unsigned char *data, size_t len)
CSHA1 & Write(const unsigned char *data, size_t len)
static const size_t OUTPUT_SIZE
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.