aboutsummaryrefslogtreecommitdiff
path: root/src/bench/chacha20.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2022-09-21 17:39:48 -0400
committerPieter Wuille <pieter@wuille.net>2023-01-30 18:12:21 -0500
commit62ec713961ade7b58e90c905395558a41e8a59f0 (patch)
treec06c39ba8afe9c401cf4aef1b375aa9b9b70c0de /src/bench/chacha20.cpp
parentf21994a02e1cc46d41995581b54222abc655be93 (diff)
downloadbitcoin-62ec713961ade7b58e90c905395558a41e8a59f0.tar.xz
Only support 32-byte keys in ChaCha20{,Aligned}
Diffstat (limited to 'src/bench/chacha20.cpp')
-rw-r--r--src/bench/chacha20.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/chacha20.cpp b/src/bench/chacha20.cpp
index 8d1d1952bc..115cd064bd 100644
--- a/src/bench/chacha20.cpp
+++ b/src/bench/chacha20.cpp
@@ -14,7 +14,7 @@ static const uint64_t BUFFER_SIZE_LARGE = 1024*1024;
static void CHACHA20(benchmark::Bench& bench, size_t buffersize)
{
std::vector<uint8_t> key(32,0);
- ChaCha20 ctx(key.data(), key.size());
+ ChaCha20 ctx(key.data());
ctx.SetIV(0);
ctx.Seek64(0);
std::vector<uint8_t> in(buffersize,0);