diff options
author | Jack Lloyd <[email protected]> | 2018-03-08 08:46:47 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-08 08:46:47 -0500 |
commit | b86e373ab1cee38362a04edf3a7310b545e739a9 (patch) | |
tree | 1d65d5b5faba03fdf9f0ec2689697f78ccb16f58 /src/lib/pubkey | |
parent | 300cc7e5523396bae65f61485406a0bf392d8320 (diff) |
Add destructor for unique_ptr
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r-- | src/lib/pubkey/ec_group/point_gfp.h | 2 | ||||
-rw-r--r-- | src/lib/pubkey/ec_group/point_mul.cpp | 5 |
2 files changed, 7 insertions, 0 deletions
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<BigInt> 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) { |