Crypto++ 8.7
Free C++ class library of cryptographic schemes
|
ElGamal Private Key adapter. More...
#include <elgamal.h>
Public Member Functions | |
virtual OID | GetAlgorithmID () const |
Retrieves the OID of the algorithm. More... | |
bool | Validate (RandomNumberGenerator &rng, unsigned int level) const |
Check the key for errors. More... | |
ElGamal Private Key adapter.
BASE | PrivateKey derived class |
DL_PrivateKey_ElGamal provides an override for GetAlgorithmID() to utilize 1.3.14.7.2.1.1. Prior to DL_PrivateKey_ElGamal, the ElGamal keys [mistakenly] used the OID from DSA due to DL_GroupParmaters_GFP(). If you need to Load
an ElGamal key with the wrong OID then see ElGamal on the Crypto++ wiki.
|
inlinevirtual |
|
inlinevirtual |
Retrieves the OID of the algorithm.
DL_PrivateKey_ElGamal provides an override for GetAlgorithmID() to utilize 1.3.14.7.2.1.1. Prior to DL_PrivateKey_ElGamal, the ElGamal keys [mistakenly] used the OID from DSA due to DL_GroupParmaters_GFP(). If you need to Load
an ElGamal key with the wrong OID then see ElGamal on the Crypto++ wiki.
|
inline |
Check the key for errors.
rng | RandomNumberGenerator for objects which use randomized testing |
level | level of thoroughness |
There are four levels of thoroughness:
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.