diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-08-27 07:52:33 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-08-27 07:52:33 -0400 |
commit | 29453dcf08f7376e0472970ca690bf8a363b7542 (patch) | |
tree | c452817ab805c8eeaf68a6b03418ef99484e472b /elgamal.h | |
parent | 56165883fc1d3952901c49dceb07c1e5a78c0fc2 (diff) | |
download | cryptopp-git-29453dcf08f7376e0472970ca690bf8a363b7542.tar.gz |
Update comments
Diffstat (limited to 'elgamal.h')
-rw-r--r-- | elgamal.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -203,7 +203,7 @@ struct DL_PrivateKey_ElGamal : public BASE /// \details Level 0 does not require a RandomNumberGenerator. A NullRNG() can
/// be used for level 0. Level 1 may not check for weak keys and such.
/// Levels 2 and 3 are recommended.
- virtual bool Validate(RandomNumberGenerator &rng, unsigned int level) const
+ bool Validate(RandomNumberGenerator &rng, unsigned int level) const
{
// Validate() formerly used DL_PrivateKey_GFP implementation through
// inheritance. However, it would reject keys from other libraries
@@ -215,12 +215,12 @@ struct DL_PrivateKey_ElGamal : public BASE // in [1,p-1]. Thanks to JPM for finding the reference. Also see
// https://github.com/weidai11/cryptopp/commit/a5a684d92986.
- 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());
|