Crypto++
5.6.5
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 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
19
NAMESPACE_END
nbtheory.h
Classes and functions for number theoretic operations.
elgamal.h
Classes and functions for ElGamal key agreement and encryption schemes.
NullRNG
RandomNumberGenerator & NullRNG()
Random Number Generator that does not produce random numbers.
Definition:
cryptlib.cpp:402
asn.h
Classes and functions for working with ANS.1 objects.
CryptoPP
Crypto++ library namespace.
PK_FinalTemplate
Template implementing constructors for public key algorithm classes.
Definition:
pubkey.h:2038
Generated on Fri Feb 11 2022 18:35:47 for Crypto++ by
1.8.17