Fabcoin Core  0.16.2
P2P Digital Currency
elgamal.cpp
Go to the documentation of this file.
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 
9 
10 #if defined(CRYPTOPP_DEBUG) && !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 
Classes and functions for ElGamal key agreement and encryption schemes.
#define NAMESPACE_BEGIN(x)
Definition: config.h:200
Classes and functions for working with ANS.1 objects.
Classes and functions for number theoretic operations.
RandomNumberGenerator & NullRNG()
Random Number Generator that does not produce random numbers.
Definition: cryptlib.cpp:402
#define NAMESPACE_END
Definition: config.h:201
Template implementing constructors for public key algorithm classes.
Definition: pubkey.h:1989