mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 23:18:55 +00:00
Merge pull request #5807
4b1df4e
Fix for biased signature nonce (SarangNoether)
This commit is contained in:
commit
0a42fddde4
@ -275,8 +275,6 @@ namespace crypto {
|
||||
buf.key = pub;
|
||||
try_again:
|
||||
random_scalar(k);
|
||||
if (((const uint32_t*)(&k))[7] == 0) // we don't want tiny numbers here
|
||||
goto try_again;
|
||||
ge_scalarmult_base(&tmp3, &k);
|
||||
ge_p3_tobytes(&buf.comm, &tmp3);
|
||||
hash_to_scalar(&buf, sizeof(s_comm), sig.c);
|
||||
|
Loading…
Reference in New Issue
Block a user