mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Fix for biased signature nonce
This commit is contained in:
parent
1bb4ae3b5e
commit
4b1df4e50f
1 changed files with 0 additions and 2 deletions
|
@ -275,8 +275,6 @@ namespace crypto {
|
||||||
buf.key = pub;
|
buf.key = pub;
|
||||||
try_again:
|
try_again:
|
||||||
random_scalar(k);
|
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_scalarmult_base(&tmp3, &k);
|
||||||
ge_p3_tobytes(&buf.comm, &tmp3);
|
ge_p3_tobytes(&buf.comm, &tmp3);
|
||||||
hash_to_scalar(&buf, sizeof(s_comm), sig.c);
|
hash_to_scalar(&buf, sizeof(s_comm), sig.c);
|
||||||
|
|
Loading…
Reference in a new issue