diff --git a/gfpcrypt.h b/gfpcrypt.h index ae05b482..c3260ca8 100644 --- a/gfpcrypt.h +++ b/gfpcrypt.h @@ -516,7 +516,7 @@ template class DL_PrivateKey_GFP : public DL_PrivateKeyImpl { public: - virtual ~DL_PrivateKey_GFP() {} + virtual ~DL_PrivateKey_GFP(); //! \brief Create a private key //! \param rng a RandomNumberGenerator derived class @@ -570,6 +570,10 @@ public: {this->AccessGroupParameters().Initialize(p, q, g); this->SetPrivateExponent(x);} }; +// Out-of-line dtor due to AIX and GCC, http://github.com/weidai11/cryptopp/issues/499 +template +DL_PrivateKey_GFP::~DL_PrivateKey_GFP() {} + //! \class DL_SignatureKeys_GFP //! \brief Discrete Log (DL) signing/verification keys in GF(p) groups struct DL_SignatureKeys_GFP