aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-21 15:38:35 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-21 15:38:35 -0500
commit0a42fddde428c38851613d7fcdefd4dfe649ad3f (patch)
treec591291dc916a676ff2372221bf75c1a1cc6349f /src/crypto
parentMerge pull request #5800 (diff)
parentFix for biased signature nonce (diff)
downloadmonero-0a42fddde428c38851613d7fcdefd4dfe649ad3f.tar.xz
Merge pull request #5807
4b1df4e Fix for biased signature nonce (SarangNoether)
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/crypto.cpp2
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);