2017-01-27 12:05:45 +00:00
|
|
|
// elgamal.cpp - originally written and placed in the public domain by Wei Dai
|
2015-11-05 06:59:46 +00:00
|
|
|
|
|
|
|
#include "pch.h"
|
|
|
|
#include "elgamal.h"
|
|
|
|
#include "asn.h"
|
|
|
|
#include "nbtheory.h"
|
|
|
|
|
|
|
|
NAMESPACE_BEGIN(CryptoPP)
|
|
|
|
|
2016-10-18 02:00:31 +00:00
|
|
|
#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING)
|
2015-11-05 06:59:46 +00:00
|
|
|
void ElGamal_TestInstantiations()
|
|
|
|
{
|
|
|
|
ElGamalEncryptor test1(1, 1, 1);
|
|
|
|
ElGamalDecryptor test2(NullRNG(), 123);
|
|
|
|
ElGamalEncryptor test3(test2);
|
|
|
|
}
|
2015-11-18 20:32:28 +00:00
|
|
|
#endif
|
2015-11-05 06:59:46 +00:00
|
|
|
|
|
|
|
NAMESPACE_END
|