diff options
Diffstat (limited to 'src/math/gfpmath/curve_gfp.cpp')
-rw-r--r-- | src/math/gfpmath/curve_gfp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/math/gfpmath/curve_gfp.cpp b/src/math/gfpmath/curve_gfp.cpp index 442fe070f..8b1ccbf94 100644 --- a/src/math/gfpmath/curve_gfp.cpp +++ b/src/math/gfpmath/curve_gfp.cpp @@ -13,15 +13,15 @@ namespace Botan { -void CurveGFp::set_shrd_mod(SharedPtrConverter<GFpModulus> const mod) +void CurveGFp::set_shrd_mod(const std::tr1::shared_ptr<GFpModulus> mod) { - mp_mod = mod.get_shared(); + mp_mod = mod; mA.turn_off_sp_red_mul();// m.m. is not needed, must be trf. back mB.turn_off_sp_red_mul();// m.m. is not needed, must be trf. back //ok, above we destroy any evantually computated montg. mult. values, // but that won't influence performance in usual applications - mA.set_shrd_mod(mod.get_shared()); - mB.set_shrd_mod(mod.get_shared()); + mA.set_shrd_mod(mod); + mB.set_shrd_mod(mod); } CurveGFp::CurveGFp(const GFpElement& a, const GFpElement& b, |