diff --git a/eccrypto.h b/eccrypto.h index 1c178384..b9f5ecec 100644 --- a/eccrypto.h +++ b/eccrypto.h @@ -444,9 +444,7 @@ public: { this->AccessGroupParameters().Initialize(ec, G, n); this->SetPrivateExponent(x); - - DL_GroupParameters_EC ¶ms = this->AccessGroupParameters(); - CRYPTOPP_ASSERT(x>=1 && x<=params.GetSubgroupOrder()-1); + CRYPTOPP_ASSERT(x>=1 && x<=this->AccessGroupParameters().GetSubgroupOrder()-1); } //! \brief Create an EC private key