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

RabinFunction Class Reference

Rabin. More...

#include <rabin.h>

Inheritance diagram for RabinFunction:

TrapdoorFunction InvertibleRabinFunction List of all members.

Public Methods

 RabinFunction (const Integer &n,const Integer &r,const Integer &s)
 RabinFunction (BufferedTransformation &bt)
void DEREncode (BufferedTransformation &bt)const
Integer ApplyFunction (const Integer &x)const
Integer PreimageBound ()const
Integer ImageBound ()const
const IntegerGetModulus ()const
const IntegerGetQuadraticResidueModPrime1 ()const
const IntegerGetQuadraticResidueModPrime2 ()const

Protected Methods

 RabinFunction ()

Protected Attributes

Integer n
Integer r
Integer s

Detailed Description

Rabin.

Definition at line 14 of file rabin.h.


Constructor & Destructor Documentation

RabinFunction::RabinFunction ( const Integer & n,
const Integer & r,
const Integer & s )
 

Definition at line 16 of file rabin.cpp.

RabinFunction::RabinFunction ( BufferedTransformation & bt )
 

Definition at line 21 of file rabin.cpp.

RabinFunction::RabinFunction ( ) [inline, protected]
 

Definition at line 30 of file rabin.h.


Member Function Documentation

Integer RabinFunction::ApplyFunction ( const Integer & in ) const [virtual]
 

Reimplemented from TrapdoorFunction.

Definition at line 39 of file rabin.cpp.

void RabinFunction::DEREncode ( BufferedTransformation & bt ) const
 

Definition at line 30 of file rabin.cpp.

const Integer & RabinFunction::GetModulus ( ) const [inline]
 

Definition at line 25 of file rabin.h.

const Integer & RabinFunction::GetQuadraticResidueModPrime1 ( ) const [inline]
 

Definition at line 26 of file rabin.h.

const Integer & RabinFunction::GetQuadraticResidueModPrime2 ( ) const [inline]
 

Definition at line 27 of file rabin.h.

Integer RabinFunction::ImageBound ( ) const [inline, virtual]
 

Reimplemented from TrapdoorFunction.

Definition at line 23 of file rabin.h.

Integer RabinFunction::PreimageBound ( ) const [inline, virtual]
 

Reimplemented from TrapdoorFunction.

Definition at line 22 of file rabin.h.


Member Data Documentation

Integer RabinFunction::n [protected]
 

Definition at line 31 of file rabin.h.

Integer RabinFunction::r [protected]
 

Definition at line 31 of file rabin.h.

Integer RabinFunction::s [protected]
 

Definition at line 31 of file rabin.h.


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