diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-09-21 17:32:32 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-01-30 18:12:21 -0500 |
commit | f21994a02e1cc46d41995581b54222abc655be93 (patch) | |
tree | 9a8b9353ef1ff9721040a51d088adc9205942299 /src/crypto | |
parent | 5d16f757639e2cc6e81db6e07bc1d5dd74abca6c (diff) |
Use ChaCha20Aligned in MuHash3072 code
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/muhash.cpp | 2 |
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; |