summaryrefslogtreecommitdiff
path: root/external/crypto++-5.6.3/elgamal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'external/crypto++-5.6.3/elgamal.cpp')
-rw-r--r--external/crypto++-5.6.3/elgamal.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/external/crypto++-5.6.3/elgamal.cpp b/external/crypto++-5.6.3/elgamal.cpp
new file mode 100644
index 0000000..c56f593
--- /dev/null
+++ b/external/crypto++-5.6.3/elgamal.cpp
@@ -0,0 +1,19 @@
+// elgamal.cpp - written and placed in the public domain by Wei Dai
+
+#include "pch.h"
+#include "elgamal.h"
+#include "asn.h"
+#include "nbtheory.h"
+
+NAMESPACE_BEGIN(CryptoPP)
+
+#if !defined(NDEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING)
+void ElGamal_TestInstantiations()
+{
+ ElGamalEncryptor test1(1, 1, 1);
+ ElGamalDecryptor test2(NullRNG(), 123);
+ ElGamalEncryptor test3(test2);
+}
+#endif
+
+NAMESPACE_END