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

CODEX_Server::AugmentedEGPublicKey Class Reference

This is an ElGamal public key augmented with an additional generator. More...

#include <AugmentedEGPublicKey.h>

Inheritance diagram for CODEX_Server::AugmentedEGPublicKey:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Server::AugmentedEGPublicKey:

Collaboration graph
[legend]
List of all members.

Public Methods

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

 AugmentedEGPublicKey (const CODEX_Ciphers::ElGamalPublicKey &key, const CODEX_ASN1::BigNumber &h)
 Create an AugmentedEGPublicKey from an ElGamalPublicKey and a BigNumber.

 AugmentedEGPublicKey (const AugmentedEGPublicKey &aAPK)
 Create an AugmentedEGPublicKeyMsg from another AugmentedEGPublicKey.

virtual ~AugmentedEGPublicKey ()
 Virtual destructor.

void operator= (const AugmentedEGPublicKey &aAPK)
 Assignment operator.

const CODEX_Ciphers::ElGamalPublicKeykey () const
 
Returns:
The ElGamal public key of the service.


const CODEX_ASN1::BigNumberh () const
 
Returns:
The additional generator h.


BIGNUM * digest (const CODEX_Ciphers::HashFunction &hashFunc) const
 Create a message digest for the AugmentedEGPublicKey.

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

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


Detailed Description

This is an ElGamal public key augmented with an additional generator.

Definition at line 32 of file AugmentedEGPublicKey.h.


Member Function Documentation

BIGNUM * AugmentedEGPublicKey::digest const CODEX_Ciphers::HashFunction   hashFunc const
 

Create a message digest for the AugmentedEGPublicKey.

Parameters:
hashFunc  A secure hash function.
Returns:
The digest of the AugmentedEGPublicKey using hashFunc.

Definition at line 58 of file AugmentedEGPublicKey.cc.

Referenced by CODEX_Server::SignedAugmentedEGPublicKey::SignedAugmentedEGPublicKey(), and CODEX_Server::SignedAugmentedEGPublicKey::verify().


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