From 651b55e84a27c7feaef5799612ee6011d3ece26d Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 22 Mar 2018 10:57:47 -0400 Subject: 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. --- src/lib/pubkey/ec_group/curve_gfp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib') 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& ws) const + { + return mul_to_tmp(x, y, ws); + } + + BigInt sqr(const BigInt& x, secure_vector& ws) const + { + return sqr_to_tmp(x, ws); + } + BigInt mul_to_tmp(const BigInt& x, const BigInt& y, secure_vector& ws) const { BigInt z; -- cgit v1.2.3