diff options
author | Jack Lloyd <[email protected]> | 2018-03-22 10:57:47 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-22 10:58:41 -0400 |
commit | 651b55e84a27c7feaef5799612ee6011d3ece26d (patch) | |
tree | 31345cc52a684ccb07d2f21ef5c2bd6baafda630 /src/lib | |
parent | 1942cdae56dfdbbf75573ca3385eb6ade4c6fe46 (diff) |
Add back mul/sqr to CurveGFp [ci skip]
These were available in 2.4 and while users "shouldn't" be using
CurveGFp, it is an exposed API.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/pubkey/ec_group/curve_gfp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/pubkey/ec_group/curve_gfp.h b/src/lib/pubkey/ec_group/curve_gfp.h index 076922ceb..d92283b11 100644 --- a/src/lib/pubkey/ec_group/curve_gfp.h +++ b/src/lib/pubkey/ec_group/curve_gfp.h @@ -152,6 +152,16 @@ class BOTAN_UNSTABLE_API CurveGFp final m_repr->curve_sqr(z, x, ws); } + BigInt mul(const BigInt& x, const BigInt& y, secure_vector<word>& ws) const + { + return mul_to_tmp(x, y, ws); + } + + BigInt sqr(const BigInt& x, secure_vector<word>& ws) const + { + return sqr_to_tmp(x, ws); + } + BigInt mul_to_tmp(const BigInt& x, const BigInt& y, secure_vector<word>& ws) const { BigInt z; |