summaryrefslogtreecommitdiff
path: root/external/crypto++-5.6.3/elgamal.cpp
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /external/crypto++-5.6.3/elgamal.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
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