Add typedef for ElGamal::PrivateKey and ElGamal::PublicKey (GH #876)

master
Jeffrey Walton 2019-08-24 04:44:22 -04:00
parent b80693d532
commit 29e3818fd2
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ struct ElGamalKeys
struct ElGamal
{
typedef DL_CryptoSchemeOptions<ElGamal, ElGamalKeys, int, int, int> SchemeOptions;
typedef typename SchemeOptions::PrivateKey PrivateKey;
typedef typename SchemeOptions::PublicKey PublicKey;
CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "ElgamalEnc/Crypto++Padding";}