diff options
author | lloyd <[email protected]> | 2010-02-24 14:57:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-24 14:57:20 +0000 |
commit | 3650b9e1ba2ffbc9983ede93853613ed78094bf0 (patch) | |
tree | 040f030c508db911e20568e6e93b6e16ec544982 /src/math/gfpmath/curve_gfp.h | |
parent | f849aab38b36c68217e98d1bfc8d8ef8f0e3c027 (diff) |
In CurveGFp, store just the BigInt mod instead of a GFpModulus
Diffstat (limited to 'src/math/gfpmath/curve_gfp.h')
-rw-r--r-- | src/math/gfpmath/curve_gfp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/gfpmath/curve_gfp.h b/src/math/gfpmath/curve_gfp.h index 5641e80d1..70225217c 100644 --- a/src/math/gfpmath/curve_gfp.h +++ b/src/math/gfpmath/curve_gfp.h @@ -79,7 +79,7 @@ class BOTAN_DLL CurveGFp * Get prime modulus of the field of the curve * @result prime modulus of the field of the curve */ - const BigInt& get_p() const { return modulus.get_p(); } + const BigInt& get_p() const { return modulus; } /** * swaps the states of *this and other, does not throw @@ -88,7 +88,7 @@ class BOTAN_DLL CurveGFp void swap(CurveGFp& other); private: - GFpModulus modulus; + BigInt modulus; GFpElement mA; GFpElement mB; GFpElement mres_a, mres_b, mres_one; |