aboutsummaryrefslogtreecommitdiff
path: root/src/bench/crypto_hash.cpp
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2019-01-28 11:57:50 -0800
committerBen Woosley <ben.woosley@gmail.com>2023-01-26 15:48:49 -0600
commit6879be691bf636a53208ef058f2ebe18bfa8017c (patch)
treeaf66a0818235164158f3100edadeabb1abffbf4d /src/bench/crypto_hash.cpp
parent7386da7a0b08cd2df8ba88dae1fab9d36424b15c (diff)
downloadbitcoin-6879be691bf636a53208ef058f2ebe18bfa8017c.tar.xz
refactor: Extract RIPEMD160
To directly return a CRIPEMD160 hash from data. Incidentally, decoding this acronym: * RIPEMD -> RIPE Message Digest * RIPE -> RACE Integrity Primitives Evaluation * RACE -> Research and Development in Advanced Communications Technologies in Europe
Diffstat (limited to 'src/bench/crypto_hash.cpp')
-rw-r--r--src/bench/crypto_hash.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bench/crypto_hash.cpp b/src/bench/crypto_hash.cpp
index 162b02f344..96d707f5c5 100644
--- a/src/bench/crypto_hash.cpp
+++ b/src/bench/crypto_hash.cpp
@@ -18,7 +18,7 @@
/* Number of bytes to hash per iteration */
static const uint64_t BUFFER_SIZE = 1000*1000;
-static void RIPEMD160(benchmark::Bench& bench)
+static void BenchRIPEMD160(benchmark::Bench& bench)
{
uint8_t hash[CRIPEMD160::OUTPUT_SIZE];
std::vector<uint8_t> in(BUFFER_SIZE,0);
@@ -150,7 +150,7 @@ static void MuHashPrecompute(benchmark::Bench& bench)
});
}
-BENCHMARK(RIPEMD160, benchmark::PriorityLevel::HIGH);
+BENCHMARK(BenchRIPEMD160, benchmark::PriorityLevel::HIGH);
BENCHMARK(SHA1, benchmark::PriorityLevel::HIGH);
BENCHMARK(SHA256, benchmark::PriorityLevel::HIGH);
BENCHMARK(SHA512, benchmark::PriorityLevel::HIGH);