Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ExponentiationPrecomputation Class Template Reference

Please do not directly use the following class. More...

#include <eprecomp.h>

List of all members.

Public Types

typedef T Element
typedef AbstractGroup<T> Group

Public Methods

 ExponentiationPrecomputation ()
void SetGroupAndBase (const Group &group,const Element &base)
void Precompute (unsigned int maxExpBits,unsigned int storage)
void PrepareCascade (::vector< BaseAndExponent< Element > > &eb,const Integer &exponent)const
Element Exponentiate (const Integer &exponent)const
Element CascadeExponentiate (const Integer &exponent,const ExponentiationPrecomputation< T > &pc2,const Integer &exponent2)const

Public Attributes

const Group* m_group
unsigned int m_windowSize
Integer m_exponentBase
::vector<Element> m_bases


Detailed Description

template<class T> class ExponentiationPrecomputation

Please do not directly use the following class.

It should be considered a private class for the library. The following classes are public and use ExponentiationPrecomputation internally.

ModExpPrecomputation;
EcPrecomputation<EC2N>;
EcPrecomputation<ECP>;

Definition at line 19 of file eprecomp.h.


Member Typedef Documentation

template<class T>
typedef T ExponentiationPrecomputation<T>::Element
 

Definition at line 22 of file eprecomp.h.

template<class T>
typedef AbstractGroup< T > ExponentiationPrecomputation<T>::Group
 

Definition at line 23 of file eprecomp.h.


Constructor & Destructor Documentation

template<class T>
ExponentiationPrecomputation<T>::ExponentiationPrecomputation<T> ( ) [inline]
 

Definition at line 25 of file eprecomp.h.


Member Function Documentation

template<class T>
T ExponentiationPrecomputation< T >::CascadeExponentiate ( const Integer & exponent,
const ExponentiationPrecomputation< T > & pc2,
const Integer & exponent2 ) const
 

Definition at line 60 of file eprecomp.cpp.

template<class T>
ExponentiationPrecomputation< T >::Element ExponentiationPrecomputation< T >::Exponentiate ( const Integer & exponent ) const
 

Definition at line 51 of file eprecomp.cpp.

template<class T>
void ExponentiationPrecomputation< T >::Precompute ( unsigned int maxExpBits,
unsigned int storage )
 

Definition at line 13 of file eprecomp.cpp.

template<class T>
void ExponentiationPrecomputation< T >::PrepareCascade ( ::vector< BaseAndExponent< Element > > & eb,
const Integer & exponent ) const
 

Definition at line 30 of file eprecomp.cpp.

template<class T>
void ExponentiationPrecomputation< T >::SetGroupAndBase ( const Group & group,
const Element & base )
 

Definition at line 6 of file eprecomp.cpp.


Member Data Documentation

template<class T>
vector< Element > ExponentiationPrecomputation<T>::m_bases
 

Definition at line 36 of file eprecomp.h.

template<class T>
Integer ExponentiationPrecomputation<T>::m_exponentBase
 

Definition at line 35 of file eprecomp.h.

template<class T>
const Group * ExponentiationPrecomputation<T>::m_group
 

Definition at line 33 of file eprecomp.h.

template<class T>
unsigned int ExponentiationPrecomputation<T>::m_windowSize
 

Definition at line 34 of file eprecomp.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:48 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000