Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_Ciphers::ElGamalSignature Class Reference

Serializable encapsulation of an ElGamal signature. More...

#include <ElGamal.h>

Inheritance diagram for CODEX_Ciphers::ElGamalSignature:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Ciphers::ElGamalSignature:

Collaboration graph
[legend]
List of all members.

Public Methods

 ElGamalSignature ()
 Default constructor, for creating an object to be unmarshalled.

 ElGamalSignature (BIGNUM *r, BIGNUM *s)
 Constructor taking signature as two BIGNUMs.

 ElGamalSignature (const CODEX_ASN1::BigNumber &r, const CODEX_ASN1::BigNumber &s)
 Constructor taking signature as two BigNumbers.

 ElGamalSignature (const ElGamalSignature &aSig)
 Copy constructor.

virtual ~ElGamalSignature ()
 Destructor.

void operator= (const ElGamalSignature &aSig)
 Assignment operator.

const CODEX_ASN1::BigNumberr () const
 
Returns:
first part of signature -- g^k mod p


const CODEX_ASN1::BigNumbers () const
 
Returns:
second part of signature -- (m - xr)/k mod (p-1)


int marshal (unsigned char **pp) const
 Serialize the object.

void * unmarshal (void *bogus, unsigned char **pp, long length)
 Unserialize the object.


Detailed Description

Serializable encapsulation of an ElGamal signature.

The notation (r,s) follows that of ElGamal's original paper.

Definition at line 154 of file ElGamal.h.


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 16:33:04 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18