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

Public Methods | |
| ElGamalDecryptor (const Integer &p,const Integer &g,const Integer &y,const Integer &x) | |
| ElGamalDecryptor (RandomNumberGenerator &rng,unsigned int pbits) | |
| ElGamalDecryptor (RandomNumberGenerator &rng,const Integer &p,const Integer &g) | |
| ElGamalDecryptor (BufferedTransformation &bt) | |
| void | DEREncode (BufferedTransformation &bt)const |
| unsigned int | Decrypt (const byte *cipherText,byte *plainText) |
| decrypt a byte string, and return the length of plaintext. More... | |
| void | RawDecrypt (const Integer &a,const Integer &b,Integer &m)const |
| const Integer& | GetPrivateExponent ()const |
Protected Attributes | |
| Integer | m_x |
Definition at line 44 of file elgamal.h.
|
|
Definition at line 85 of file elgamal.cpp. |
|
|
Definition at line 90 of file elgamal.cpp. |
|
|
Definition at line 101 of file elgamal.cpp. |
|
|
Definition at line 111 of file elgamal.cpp. |
|
|
Reimplemented from ElGamalEncryptor. Definition at line 124 of file elgamal.cpp. |
|
|
decrypt a byte string, and return the length of plaintext. Preconditions: \begin{itemize} \item length of cipherText == CipherTextLength() \item size of plainText == MaxPlainTextLength() \end{itemize} The function returns the actual length of the plaintext, or 0 if decryption fails. Reimplemented from PK_FixedLengthDecryptor. Definition at line 134 of file elgamal.cpp. |
|
|
|
|
|
Definition at line 151 of file elgamal.cpp. |
|
|
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000