diff options
author | lloyd <[email protected]> | 2010-02-24 21:34:50 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-24 21:34:50 +0000 |
commit | 9efa59d4322babc444601052aa79f7b3fe304fd6 (patch) | |
tree | 720fdac9668ef4313af82d7f0f4bdecd15c73b0e /src/math/gfpmath/curve_gfp.h | |
parent | b06a941a98f49172b203914810483589cf86cc76 (diff) |
Remove the montgomery optimizations from GFpElement entirely.
This makes things even slower than they were before, but will make
refactoring easier. And most of the montgomery code there was
duplicates of other code that already existed in the
codebase. Anything useful can be pulled back out from history later if
needed.
Diffstat (limited to 'src/math/gfpmath/curve_gfp.h')
-rw-r--r-- | src/math/gfpmath/curve_gfp.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/math/gfpmath/curve_gfp.h b/src/math/gfpmath/curve_gfp.h index 70225217c..5be2c9af6 100644 --- a/src/math/gfpmath/curve_gfp.h +++ b/src/math/gfpmath/curve_gfp.h @@ -34,8 +34,6 @@ class BOTAN_DLL CurveGFp // CurveGFp(const CurveGFp& other) = default; // CurveGFp& operator=(const CurveGFp& other) = default; - // getters - /** * Get coefficient a * @result coefficient a @@ -49,33 +47,6 @@ class BOTAN_DLL CurveGFp const GFpElement& get_b() const { return mB; } /** - * Get the GFpElement coefficient a transformed - * to its m-residue. This can be used for efficency reasons: the curve - * stores the transformed version after the first invocation of this - * function. - * @result the coefficient a, transformed to its m-residue - */ - const GFpElement& get_mres_a() const { return mres_a; } - - /** - * Get the GFpElement coefficient b transformed - * to its m-residue. This can be used for efficency reasons: the curve - * stores the transformed version after the first invocation of this - * function. - * @result the coefficient b, transformed to its m-residue - */ - const GFpElement& get_mres_b() const { return mres_b; } - - /** - * Get the GFpElement 1 transformed - * to its m-residue. This can be used for efficency reasons: the curve - * stores the transformed version after the first invocation of this - * function. - * @result the GFpElement 1, transformed to its m-residue - */ - const GFpElement& get_mres_one() { return mres_one; } - - /** * Get prime modulus of the field of the curve * @result prime modulus of the field of the curve */ @@ -91,7 +62,6 @@ class BOTAN_DLL CurveGFp BigInt modulus; GFpElement mA; GFpElement mB; - GFpElement mres_a, mres_b, mres_one; }; // relational operators |