summaryrefslogtreecommitdiff
path: root/elgamal.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-08-24 04:44:22 -0400
committerJeffrey Walton <noloader@gmail.com>2019-08-24 04:44:22 -0400
commit29e3818fd2228440371ba643965e800dcf616485 (patch)
treefb98e11974687252933c4bba48763a5dd6b0a4e5 /elgamal.h
parentb80693d5322ac987fa8a8133248e23367582a762 (diff)
downloadcryptopp-git-29e3818fd2228440371ba643965e800dcf616485.tar.gz
Add typedef for ElGamal::PrivateKey and ElGamal::PublicKey (GH #876)
Diffstat (limited to 'elgamal.h')
-rw-r--r--elgamal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/elgamal.h b/elgamal.h
index 45b3f10b..599c13f8 100644
--- a/elgamal.h
+++ b/elgamal.h
@@ -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";}