Skip to content
Permalink
Browse files

Fix for biased signature nonce

  • Loading branch information...
SarangNoether committed Aug 12, 2019
1 parent 1bb4ae3 commit 4b1df4e50ffac182cae53d049b2ef4e0a5083340
Showing with 0 additions and 2 deletions.
  1. +0 −2 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);

0 comments on commit 4b1df4e

Please sign in to comment.
You can’t perform that action at this time.