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

CODEX_VSS::ModExpFunctionalArgs Class Reference

This is a helper class that holds arguments to construct a ModExpFunctional object. More...

#include <ModExpFunctional.h>

Inheritance diagram for CODEX_VSS::ModExpFunctionalArgs:

Inheritance graph
[legend]
Collaboration diagram for CODEX_VSS::ModExpFunctionalArgs:

Collaboration graph
[legend]
List of all members.

Public Methods

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

 ModExpFunctionalArgs (const CODEX_ASN1::BigNumber &base, const CODEX_ASN1::BigNumber &modulus)
 Constructor taking the base and modulus.

 ModExpFunctionalArgs (const ModExpFunctionalArgs &aOther)
 Copy constructor.

virtual ~ModExpFunctionalArgs ()
 Virtual destructor.

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

const CODEX_ASN1::BigNumberbase () const
 
Returns:
The base for the modular exponentiation.


const CODEX_ASN1::BigNumbermodulus () const
 
Returns:
The modulus for the modular exponentiation.


int marshal (unsigned char **pp) const
 This function creates a serialized representation of the object, which is returned through the argument pp.

void * unmarshal (void *bogus, unsigned char **pp, long length)
 This function takes a serialized representation of the object and recreates the object representation.


Detailed Description

This is a helper class that holds arguments to construct a ModExpFunctional object.

Definition at line 30 of file ModExpFunctional.h.


Member Function Documentation

int ModExpFunctionalArgs::marshal unsigned char **    pp const [virtual]
 

This function creates a serialized representation of the object, which is returned through the argument pp.

This must be overridden by the concrete derived class.

Parameters:
pp  Serialized form of the object
Returns:
Length of the marshalled data

Implements CODEX_ASN1::Base.

Definition at line 167 of file ModExpFunctional.cc.

References CODEX_ASN1::Base::initialized(), and CODEX_ASN1::BigNumber::marshal().

void * ModExpFunctionalArgs::unmarshal void *    bogus,
unsigned char **    pp,
long    length
[virtual]
 

This function takes a serialized representation of the object and recreates the object representation.

This must be overridden by the concrete derived class.

Parameters:
bogus  Included for compatibility with OpenSSL ASN.1 macros
pp  Serialized form of the data
length  Number of bytes of pp to unmarshal
Returns:
success or failure of the unmarshalling

Implements CODEX_ASN1::Base.

Definition at line 184 of file ModExpFunctional.cc.

References CODEX_ASN1::Base::m_initialized, and CODEX_ASN1::BigNumber::unmarshal().


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