diff options
author | lloyd <[email protected]> | 2012-08-01 14:48:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-08-01 14:48:45 +0000 |
commit | 3e4ecea6915f4ceb3c0426cf6d179fcc078dd8df (patch) | |
tree | 7ffda5d9c17247b83b8f1f1761cfd4aace1e9e3c /src/math/ec_gfp | |
parent | 10e7da367713352975c684d18d1377559c71ea24 (diff) |
Remove BigInt(NumberType type, size_t n) and replace it with a static
BigInt function power_of_2. (Power2 was the only available NumberType)
Diffstat (limited to 'src/math/ec_gfp')
-rw-r--r-- | src/math/ec_gfp/curve_gfp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/ec_gfp/curve_gfp.h b/src/math/ec_gfp/curve_gfp.h index 9867f82fe..9d10c2028 100644 --- a/src/math/ec_gfp/curve_gfp.h +++ b/src/math/ec_gfp/curve_gfp.h @@ -35,7 +35,7 @@ class BOTAN_DLL CurveGFp CurveGFp(const BigInt& p, const BigInt& a, const BigInt& b) : p(p), a(a), b(b), p_words(p.sig_words()) { - BigInt r(BigInt::Power2, p_words * BOTAN_MP_WORD_BITS); + const BigInt r = BigInt::power_of_2(p_words * BOTAN_MP_WORD_BITS); p_dash = (((r * inverse_mod(r, p)) - 1) / p).word_at(0); |