summaryrefslogtreecommitdiff
path: root/elgamal.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-08-27 06:44:02 -0400
committerJeffrey Walton <noloader@gmail.com>2019-08-27 06:44:02 -0400
commit54c8819c70807e04f9941c9f2c06056d28711007 (patch)
tree70f2deb5fabdb48e9361a9d388294be66e3f0f1a /elgamal.h
parentfcbfd68dfbd7270402c38042da233dc1d7fa37a0 (diff)
downloadcryptopp-git-54c8819c70807e04f9941c9f2c06056d28711007.tar.gz
Fix ElGamal compile on Linux
Diffstat (limited to 'elgamal.h')
-rw-r--r--elgamal.h10
1 files 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());