#include <ElGamal.h>
Inheritance diagram for CODEX_Ciphers::ElGamalCipherText:


Public Member Functions | |
| ElGamalCipherText () | |
| Default constructor, for creating an object to be unmarshalled. | |
| ElGamalCipherText (BIGNUM *c1, BIGNUM *c2) | |
| Constructor taking ciphertext as two BIGNUM%s. | |
| ElGamalCipherText (const CODEX_ASN1::BigNumber &c1, const CODEX_ASN1::BigNumber &c2) | |
| Constructor taking ciphertext as two BigNumber%s. | |
| ElGamalCipherText (const ElGamalCipherText &aCT) | |
| Copy constructor. | |
| virtual | ~ElGamalCipherText () |
| Destructor. | |
| void | operator= (const ElGamalCipherText &aCT) |
| Assignment operator. | |
| bool | operator< (const ElGamalCipherText &aCT) const |
| Less-than operator. | |
| bool | operator== (const ElGamalCipherText &aCT) const |
| Equality operator. | |
| bool | operator!= (const ElGamalCipherText &aCT) const |
| Inequality operator. | |
| const CODEX_ASN1::BigNumber & | c1 () const |
| First part of the ciphertext -- g^k mod p. | |
| const CODEX_ASN1::BigNumber & | c2 () const |
| Second part of the ciphertext -- m y^k mod p. | |
| ElGamalCipherText * | blind (const ElGamalCipherText &aOther, const CODEX_ASN1::BigNumber &modulus) const |
| Blind a ciphertext. | |
| int | marshal (unsigned char **pp) const |
| Serialize the object. | |
| void * | unmarshal (void *bogus, unsigned char **pp, long length) |
| Unserialize the object. | |
| bool | initialized () const |
Protected Attributes | |
| bool | m_initialized |
| Has this object been initialized yet, or is it still blank? | |
The notation (c1,c2) follows that of ElGamal's original paper.
Definition at line 37 of file ElGamal.h.
|
||||||||||||
|
Blind a ciphertext.
Definition at line 90 of file ElGamalCipherText.cc. References ElGamalCipherText(), and CODEX_ASN1::BigNumber::value(). |
|
1.4.1