Crypto++
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 void ElGamal_TestInstantiations()
11 {
12  ElGamalEncryptor test1(1, 1, 1);
13  ElGamalDecryptor test2(NullRNG(), 123);
14  ElGamalEncryptor test3(test2);
15 }
16 
17 NAMESPACE_END
RandomNumberGenerator & NullRNG()
returns a reference that can be passed to functions that ask for a RNG but doesn't actually use it ...
Definition: cryptlib.cpp:295
A template implementing constructors for public key algorithm classes.
Definition: pubkey.h:1488