diff options
Diffstat (limited to 'src/math/gfpmath/gfp_modulus.h')
-rw-r--r-- | src/math/gfpmath/gfp_modulus.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/math/gfpmath/gfp_modulus.h b/src/math/gfpmath/gfp_modulus.h index 03e8a19e0..ace42b27d 100644 --- a/src/math/gfpmath/gfp_modulus.h +++ b/src/math/gfpmath/gfp_modulus.h @@ -22,8 +22,6 @@ class GFpElement; class BOTAN_DLL GFpModulus { public: - friend class GFpElement; - /** * Construct a GF(P)-Modulus from a BigInt */ @@ -109,6 +107,15 @@ class BOTAN_DLL GFpModulus } // default cp-ctor, op= are fine + void reset_values(const BigInt& new_p_dash, + const BigInt& new_r, + const BigInt& new_r_inv) + { + m_p_dash = new_p_dash; + m_r = new_r; + m_r_inv = new_r_inv; + } + private: BigInt m_p; // the modulus itself mutable BigInt m_p_dash; |