From 54c8819c70807e04f9941c9f2c06056d28711007 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 27 Aug 2019 06:44:02 -0400 Subject: [PATCH] Fix ElGamal compile on Linux --- elgamal.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/elgamal.h b/elgamal.h index 8896ad24..dac84f32 100644 --- a/elgamal.h +++ b/elgamal.h @@ -215,12 +215,12 @@ struct DL_PrivateKey_ElGamal : public BASE // selected in over [1,p-1], and not [1,q-1] as with some of the // later GFP algorithms. - CRYPTOPP_ASSERT(GetAbstractGroupParameters().Validate(rng, level)); - bool pass = GetAbstractGroupParameters().Validate(rng, level); + CRYPTOPP_ASSERT(this->GetAbstractGroupParameters().Validate(rng, level)); + bool pass = this->GetAbstractGroupParameters().Validate(rng, level); - const Integer &p = GetGroupParameters().GetModulus(); - const Integer &q = GetAbstractGroupParameters().GetSubgroupOrder(); - const Integer &x = GetPrivateExponent(); + const Integer &p = this->GetGroupParameters().GetModulus(); + const Integer &q = this->GetAbstractGroupParameters().GetSubgroupOrder(); + const Integer &x = this->GetPrivateExponent(); // Changed to x < p-1 based on ElGamal's paper and the HAC. CRYPTOPP_ASSERT(x.IsPositive());