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

InvertibleRWFunction Class Template Reference

. More...

#include <rw.h>

Inheritance diagram for InvertibleRWFunction:

RWFunction InvertibleTrapdoorFunction TrapdoorFunction TrapdoorFunction List of all members.

Public Methods

 InvertibleRWFunction (const Integer &n,const Integer &p,const Integer &q,const Integer &u)
 InvertibleRWFunction (RandomNumberGenerator &rng,unsigned int keybits)
 InvertibleRWFunction (BufferedTransformation &bt)
 ~InvertibleRWFunction ()
void DEREncode (BufferedTransformation &bt)const
Integer CalculateInverse (const Integer &x)const
const IntegerGetPrime1 ()const
const IntegerGetPrime2 ()const

Protected Attributes

Integer p
Integer q
Integer u

Detailed Description

template<word r> class InvertibleRWFunction

.

Definition at line 91 of file rw.h.


Constructor & Destructor Documentation

template<word r>
InvertibleRWFunction< r >::InvertibleRWFunction<r> ( const Integer & n,
const Integer & p,
const Integer & q,
const Integer & u )
 

Definition at line 133 of file rw.cpp.

template<word r>
InvertibleRWFunction< r >::InvertibleRWFunction<r> ( RandomNumberGenerator & rng,
unsigned int keybits )
 

Definition at line 142 of file rw.cpp.

template<word r>
InvertibleRWFunction< r >::InvertibleRWFunction<r> ( BufferedTransformation & bt )
 

Definition at line 168 of file rw.cpp.

template<word r>
InvertibleRWFunction< r >::~InvertibleRWFunction<r> ( )
 

Definition at line 179 of file rw.cpp.


Member Function Documentation

template<word r>
Integer InvertibleRWFunction< r >::CalculateInverse ( const Integer & in ) const [virtual]
 

Reimplemented from InvertibleTrapdoorFunction.

Definition at line 195 of file rw.cpp.

template<word r>
void InvertibleRWFunction< r >::DEREncode ( BufferedTransformation & bt ) const
 

Reimplemented from RWFunction.

Definition at line 184 of file rw.cpp.

template<word r>
const Integer & InvertibleRWFunction<r>::GetPrime1 ( ) const [inline]
 

Definition at line 103 of file rw.h.

template<word r>
const Integer & InvertibleRWFunction<r>::GetPrime2 ( ) const [inline]
 

Definition at line 104 of file rw.h.


Member Data Documentation

template<word r>
Integer InvertibleRWFunction<r>::p [protected]
 

Definition at line 107 of file rw.h.

template<word r>
Integer InvertibleRWFunction<r>::q [protected]
 

Definition at line 107 of file rw.h.

template<word r>
Integer InvertibleRWFunction<r>::u [protected]
 

Definition at line 107 of file rw.h.


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