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

CODEX_VSS::ModExpFunctional Class Reference

This class performs modular exponentiation. More...

#include <ModExpFunctional.h>

Inheritance diagram for CODEX_VSS::ModExpFunctional:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef CODEX_ASN1::BigNumber ArgType
 Short name for argument types.

typedef ModExpFunctionalArgs CtorArgs
 Type for the constructor arguments.


Public Methods

 ModExpFunctional (const ArgType &base, const ArgType &modulus)
 Constructor taking two arguments.

 ModExpFunctional (const CtorArgs &args)
 Constructor taking a single argument.

virtual ~ModExpFunctional ()
 Virtual destructor.

void operator() (const CODEX_ASN1::SecureBigNumber &operand, CODEX_ASN1::BigNumber &result) const
 Perform a modular exponentiation.

const ArgTypebase () const
 
Returns:
The base for modular exponentiation.


const ArgTypemodulus () const
 
Returns:
The modulus for modular exponentiation.



Detailed Description

This class performs modular exponentiation.

The base and modulus are set in the constructor.

Definition at line 67 of file ModExpFunctional.h.


Member Function Documentation

void ModExpFunctional::operator() const CODEX_ASN1::SecureBigNumber   operand,
CODEX_ASN1::BigNumber   result
const [virtual]
 

Perform a modular exponentiation.

Parameters:
operand  The exponent to which the base should be raised.
result  The modular exponentiation of the base to the provided exponent.

Implements CODEX_VSS::ShareFunctional.

Definition at line 46 of file ModExpFunctional.cc.

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


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