Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File 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 Member Functions

 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
 The base for modular exponentiation.
const ArgTypemodulus () const
 The modulus for modular exponentiation.

Detailed Description

This class performs modular exponentiation.

The base and modulus are set in the constructor.

Definition at line 70 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 Fri May 6 17:42:54 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1