diff options
author | Jack Lloyd <[email protected]> | 2018-03-21 11:00:21 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-21 11:00:21 -0400 |
commit | 574f44727d386984cf87a1161cec135209091650 (patch) | |
tree | f8dd93f7154455e81cf16d0947cc4be8172d27c3 /src/lib/pubkey/ecgdsa | |
parent | b03c5da8b56606f7b4df8122d8bd7914760dba32 (diff) |
Add EC_Group::random_scalar
Diffstat (limited to 'src/lib/pubkey/ecgdsa')
-rw-r--r-- | src/lib/pubkey/ecgdsa/ecgdsa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/ecgdsa/ecgdsa.cpp b/src/lib/pubkey/ecgdsa/ecgdsa.cpp index 12962d18c..062bb524d 100644 --- a/src/lib/pubkey/ecgdsa/ecgdsa.cpp +++ b/src/lib/pubkey/ecgdsa/ecgdsa.cpp @@ -59,7 +59,7 @@ ECGDSA_Signature_Operation::raw_sign(const uint8_t msg[], size_t msg_len, { const BigInt m(msg, msg_len, m_group.get_order_bits()); - BigInt k = BigInt::random_integer(rng, 1, m_group.get_order()); + const BigInt k = m_group.random_scalar(rng); const BigInt r = m_group.mod_order( m_group.blinded_base_point_multiply_x(k, rng, m_ws)); |