Skip to content

Commit f21994a

Browse files
committed
Use ChaCha20Aligned in MuHash3072 code
1 parent 5d16f75 commit f21994a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/muhash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ Num3072 MuHash3072::ToNum3072(Span<const unsigned char> in) {
299299
unsigned char tmp[Num3072::BYTE_SIZE];
300300

301301
uint256 hashed_in{(HashWriter{} << in).GetSHA256()};
302-
ChaCha20(hashed_in.data(), hashed_in.size()).Keystream(tmp, Num3072::BYTE_SIZE);
302+
ChaCha20Aligned(hashed_in.data(), hashed_in.size()).Keystream64(tmp, Num3072::BYTE_SIZE / 64);
303303
Num3072 out{tmp};
304304

305305
return out;

0 commit comments

Comments
 (0)