diff options
author | lloyd <[email protected]> | 2008-10-09 20:08:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-09 20:08:42 +0000 |
commit | ea0ab5f4d4dab9952565efd7d42d8fe9091f6f13 (patch) | |
tree | 16edd58cf155c4875749b0a103a42a4a12d5201e /src/math/gfpmath/gfp_element.h | |
parent | 30466ac31e9d83370e76e871e8480210b9876251 (diff) |
Some small changes to GFpElement, including accepting u64bit instead
of u32bit to the operator* and operator*=
Instead of passing the n_dash array to inner_montg_mult_sos, which only
uses the first word, just pass the word directly.
Diffstat (limited to 'src/math/gfpmath/gfp_element.h')
-rw-r--r-- | src/math/gfpmath/gfp_element.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/gfpmath/gfp_element.h b/src/math/gfpmath/gfp_element.h index 39e728cfa..067825bc3 100644 --- a/src/math/gfpmath/gfp_element.h +++ b/src/math/gfpmath/gfp_element.h @@ -142,7 +142,7 @@ class BOTAN_DLL GFpElement * @param rhs the value to multiply with the local value * @result *this */ - GFpElement& operator*= (u32bit rhs); + GFpElement& operator*= (u64bit rhs); /** * Negate internal value(*this *= -1 ) @@ -270,8 +270,8 @@ GFpElement operator-(const GFpElement& lhs); GFpElement operator*(const GFpElement& lhs, const GFpElement& rhs); GFpElement operator/(const GFpElement& lhs, const GFpElement& rhs); -GFpElement operator* (const GFpElement& lhs, u32bit rhs); -GFpElement operator* (u32bit rhs, const GFpElement& lhs); +GFpElement operator* (const GFpElement& lhs, u64bit rhs); +GFpElement operator* (u64bit rhs, const GFpElement& lhs); // io operators std::ostream& operator<<(std::ostream& output, const GFpElement& elem); |