mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Use ChaCha20Aligned in MuHash3072 code
This commit is contained in:
parent
5d16f75763
commit
f21994a02e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue