aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2022-09-21 17:32:32 -0400
committerPieter Wuille <pieter@wuille.net>2023-01-30 18:12:21 -0500
commitf21994a02e1cc46d41995581b54222abc655be93 (patch)
tree9a8b9353ef1ff9721040a51d088adc9205942299 /src/crypto
parent5d16f757639e2cc6e81db6e07bc1d5dd74abca6c (diff)
downloadbitcoin-f21994a02e1cc46d41995581b54222abc655be93.tar.xz
Use ChaCha20Aligned in MuHash3072 code
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/muhash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/muhash.cpp b/src/crypto/muhash.cpp
index 26f0248663..d5ae67f374 100644
--- a/src/crypto/muhash.cpp
+++ b/src/crypto/muhash.cpp
@@ -299,7 +299,7 @@ Num3072 MuHash3072::ToNum3072(Span<const unsigned char> in) {
unsigned char tmp[Num3072::BYTE_SIZE];
uint256 hashed_in{(HashWriter{} << in).GetSHA256()};
- ChaCha20(hashed_in.data(), hashed_in.size()).Keystream(tmp, Num3072::BYTE_SIZE);
+ ChaCha20Aligned(hashed_in.data(), hashed_in.size()).Keystream64(tmp, Num3072::BYTE_SIZE / 64);
Num3072 out{tmp};
return out;