diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-09-21 17:39:48 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-01-30 18:12:21 -0500 |
commit | 62ec713961ade7b58e90c905395558a41e8a59f0 (patch) | |
tree | c06c39ba8afe9c401cf4aef1b375aa9b9b70c0de /src/bench | |
parent | f21994a02e1cc46d41995581b54222abc655be93 (diff) |
Only support 32-byte keys in ChaCha20{,Aligned}
Diffstat (limited to 'src/bench')
-rw-r--r-- | src/bench/chacha20.cpp | 2 |
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); |