#include <elgamal.h>
Inheritance diagram for ElGamalEncryptor:

Public Methods | |
| ElGamalEncryptor (const Integer &p,const Integer &g,const Integer &y) | |
| ElGamalEncryptor (BufferedTransformation &bt) | |
| void | DEREncode (BufferedTransformation &bt)const |
| void | Precompute (unsigned int precomputationStorage=16) |
| void | LoadPrecomputation (BufferedTransformation &storedPrecomputation) |
| retrieve previously saved precomputation. More... | |
| void | SavePrecomputation (BufferedTransformation &storedPrecomputation)const |
| save precomputation for later use. More... | |
| void | Encrypt (RandomNumberGenerator &rng,const byte *plainText,unsigned int plainTextLength,byte *cipherText) |
| unsigned int | MaxPlainTextLength ()const |
| unsigned int | CipherTextLength ()const |
| void | RawEncrypt (const Integer &k,const Integer &m,Integer &a,Integer &b)const |
| const Integer& | GetModulus ()const |
| const Integer& | GetGenerator ()const |
| const Integer& | GetPublicResidue ()const |
| const ModExpPrecomputation& | GetGPC ()const |
| const ModExpPrecomputation& | GetYPC ()const |
Protected Methods | |
| ElGamalEncryptor () | |
| unsigned int | ExponentBitLength ()const |
Protected Attributes | |
| Integer | m_p |
| Integer | m_g |
| Integer | m_y |
| ModExpPrecomputation | m_gpc |
| ModExpPrecomputation | m_ypc |
Definition at line 9 of file elgamal.h.
|
|
Definition at line 10 of file elgamal.cpp. |
|
|
Definition at line 15 of file elgamal.cpp. |
|
|
|
|
|
|
|
|
Definition at line 27 of file elgamal.cpp. |
|
|
Definition at line 54 of file elgamal.cpp. |
|
|
Definition at line 78 of file elgamal.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
retrieve previously saved precomputation.
Reimplemented from PK_Precomputation. Definition at line 42 of file elgamal.cpp. |
|
|
|
|
|
The exact semantics of Precompute() is varies, but typically it means calculate a table of n objects that can be used later to speed up computation. Reimplemented from PK_Precomputation. Definition at line 36 of file elgamal.cpp. |
|
|
Definition at line 72 of file elgamal.cpp. |
|
|
save precomputation for later use.
Reimplemented from PK_Precomputation. Definition at line 48 of file elgamal.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000