From b86e373ab1cee38362a04edf3a7310b545e739a9 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 8 Mar 2018 08:46:47 -0500 Subject: Add destructor for unique_ptr --- src/lib/pubkey/ec_group/point_gfp.h | 2 ++ src/lib/pubkey/ec_group/point_mul.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'src/lib/pubkey') diff --git a/src/lib/pubkey/ec_group/point_gfp.h b/src/lib/pubkey/ec_group/point_gfp.h index 71701d587..56844a26f 100644 --- a/src/lib/pubkey/ec_group/point_gfp.h +++ b/src/lib/pubkey/ec_group/point_gfp.h @@ -309,6 +309,8 @@ class BOTAN_PUBLIC_API(2,0) BOTAN_DEPRECATED("See comments") Blinded_Point_Multi public: Blinded_Point_Multiply(const PointGFp& base, const BigInt& order, size_t h = 0); + ~Blinded_Point_Multiply(); + PointGFp blinded_multiply(const BigInt& scalar, RandomNumberGenerator& rng); private: std::vector m_ws; diff --git a/src/lib/pubkey/ec_group/point_mul.cpp b/src/lib/pubkey/ec_group/point_mul.cpp index 556a05eb0..2a63a8221 100644 --- a/src/lib/pubkey/ec_group/point_mul.cpp +++ b/src/lib/pubkey/ec_group/point_mul.cpp @@ -20,6 +20,11 @@ Blinded_Point_Multiply::Blinded_Point_Multiply(const PointGFp& base, m_point_mul.reset(new PointGFp_Var_Point_Precompute(base)); } +Blinded_Point_Multiply::~Blinded_Point_Multiply() + { + /* for ~unique_ptr */ + } + PointGFp Blinded_Point_Multiply::blinded_multiply(const BigInt& scalar, RandomNumberGenerator& rng) { -- cgit v1.2.3