diff options
author | Sarang Noether <32460187+SarangNoether@users.noreply.github.com> | 2019-08-12 15:58:15 -0400 |
---|---|---|
committer | Sarang Noether <32460187+SarangNoether@users.noreply.github.com> | 2019-08-12 15:58:15 -0400 |
commit | 4b1df4e50ffac182cae53d049b2ef4e0a5083340 (patch) | |
tree | c8da80db87386dc8e4355cb5c5341a69dab82d3b /src/crypto | |
parent | Merge pull request #5779 (diff) | |
download | monero-4b1df4e50ffac182cae53d049b2ef4e0a5083340.tar.xz |
Fix for biased signature nonce
Diffstat (limited to '')
-rw-r--r-- | src/crypto/crypto.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/crypto/crypto.cpp b/src/crypto/crypto.cpp index 3f06c4f3f..d4b2a22bc 100644 --- a/src/crypto/crypto.cpp +++ b/src/crypto/crypto.cpp @@ -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); |