You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
403 B
20 lines
403 B
5 years ago
|
// 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
|