Crypto++  5.6.3
Free C++ class library of cryptographic schemes
elgamal.cpp
1 // elgamal.cpp - written and placed in the public domain by Wei Dai
2 
3 #include "pch.h"
4 #include "elgamal.h"
5 #include "asn.h"
6 #include "nbtheory.h"
7 
8 NAMESPACE_BEGIN(CryptoPP)
9 
10 #if !defined(NDEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING)
11 void ElGamal_TestInstantiations()
12 {
13  ElGamalEncryptor test1(1, 1, 1);
14  ElGamalDecryptor test2(NullRNG(), 123);
15  ElGamalEncryptor test3(test2);
16 }
17 #endif
18 
19 NAMESPACE_END
Classes and functions for ElGamal key agreement and encryption schemes.
RandomNumberGenerator & NullRNG()
Random Number Generator that does not produce random numbers.
Definition: cryptlib.cpp:405
Classes and functions for working with ANS.1 objects.
Classes and functions for number theoretic operations.
Crypto++ library namespace.