mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-25 08:21:24 +02:00
Use ChaCha20Aligned in MuHash3072 code
This commit is contained in:
parent
5d16f75763
commit
f21994a02e
@ -299,7 +299,7 @@ Num3072 MuHash3072::ToNum3072(Span<const unsigned char> in) {
|
|||||||
unsigned char tmp[Num3072::BYTE_SIZE];
|
unsigned char tmp[Num3072::BYTE_SIZE];
|
||||||
|
|
||||||
uint256 hashed_in{(HashWriter{} << in).GetSHA256()};
|
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};
|
Num3072 out{tmp};
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user