diff options
author | lloyd <[email protected]> | 2008-09-30 21:16:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-30 21:16:11 +0000 |
commit | 0a3f52146665a222d27a1d83f79550bd071c2224 (patch) | |
tree | e4f0e465261458dd5e6e09960725770626090587 /src/pk | |
parent | 76620fdd610bc56b125977626d62b6883587bc25 (diff) |
random_integer is now in BigInt
Diffstat (limited to 'src/pk')
-rw-r--r-- | src/pk/ecdsa/ec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pk/ecdsa/ec.cpp b/src/pk/ecdsa/ec.cpp index 805d02b4b..8cb28788f 100644 --- a/src/pk/ecdsa/ec.cpp +++ b/src/pk/ecdsa/ec.cpp @@ -165,7 +165,7 @@ void EC_PrivateKey::generate_private_key(RandomNumberGenerator& rng) throw Invalid_State("cannot generate private key when domain parameters are not set"); } BigInt tmp_private_value(0); - tmp_private_value = random_integer (rng, 1, mp_dom_pars->get_order() ); + tmp_private_value = BigInt::random_integer(rng, 1, mp_dom_pars->get_order() ); mp_public_point = std::auto_ptr<PointGFp>( new PointGFp (mp_dom_pars->get_base_point())); mp_public_point->mult_this_secure(tmp_private_value, mp_dom_pars->get_order(), mp_dom_pars->get_order()-1); |