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

CODEX_Server::SignedAugmentedEGPublicKey Class Reference

This is a signed AugmentedEGPublicKey. More...

#include <AugmentedEGPublicKey.h>

Inheritance diagram for CODEX_Server::SignedAugmentedEGPublicKey:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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

 SignedAugmentedEGPublicKey (const AugmentedEGPublicKey &aAPK, const CODEX_Ciphers::RSASignature &sig)
 Constructor taking an augmented public key and a signature.

 SignedAugmentedEGPublicKey (const AugmentedEGPublicKey &aAPK, const CODEX_Ciphers::RSAPrivateKey &key, const CODEX_Ciphers::HashFunction &hashFunc)
 Constructor taking an augmented public key and the private key and hash function needed to generate the signature.

 SignedAugmentedEGPublicKey (const SignedAugmentedEGPublicKey &aOther)
 Copy constructor.

virtual ~SignedAugmentedEGPublicKey ()
 Virtual destructor.

void operator= (const SignedAugmentedEGPublicKey &aOther)
 Assignment operator.

const AugmentedEGPublicKeykey () const
 
Returns:
The augmented ElGamal public key.


const CODEX_Ciphers::RSASignaturesignature () const
 
Returns:
The signature on the public key.


bool verify (const CODEX_Ciphers::RSAPublicKey &key, const CODEX_Ciphers::HashFunction &hashFunc) const
 Verify the signature on 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 a signed AugmentedEGPublicKey.

Definition at line 82 of file AugmentedEGPublicKey.h.


Member Function Documentation

bool SignedAugmentedEGPublicKey::verify const CODEX_Ciphers::RSAPublicKey   key,
const CODEX_Ciphers::HashFunction   hashFunc
const
 

Verify the signature on the AugmentedEGPublicKey.

Parameters:
key  The RSA public signature verification key.
hashFunc  The secure hash function used to create a message digest.
Returns:
Whether the signature is valid.

Definition at line 208 of file AugmentedEGPublicKey.cc.

References CODEX_Server::AugmentedEGPublicKey::digest(), and CODEX_Ciphers::RSAPublicKey::verifySignature().

Referenced by CODEX_Server::ServerState::configure().


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