TrapdoorFunctionBounds Class Reference

Provides range for plaintext and ciphertext lengths. More...

Inheritance diagram for TrapdoorFunctionBounds:
RandomizedTrapdoorFunction TrapdoorFunction ESIGNFunction LUCFunction RabinFunction RSAFunction RWFunction InvertibleESIGNFunction InvertibleLUCFunction InvertibleRabinFunction InvertibleRSAFunction RSAFunction_ISO InvertibleRWFunction InvertibleRSAFunction_ISO

List of all members.

Public Member Functions

virtual Integer PreimageBound () const =0
 Returns the maximum size of a message before the trapdoor function is applied.
virtual Integer ImageBound () const =0
 Returns the maximum size of a message after the trapdoor function is applied.
virtual Integer MaxPreimage () const
 Returns the maximum size of a message before the trapdoor function is applied bound to a public key.
virtual Integer MaxImage () const
 Returns the maximum size of a message after the trapdoor function is applied bound to a public key.

Detailed Description

Provides range for plaintext and ciphertext lengths.

A trapdoor function is a function that is easy to compute in one direction, but difficult to compute in the opposite direction without special knowledge. The special knowledge is usually the private key.

Trapdoor functions only handle messages of a limited length or size. MaxPreimage is the plaintext's maximum length, and MaxImage is the ciphertext's maximum length.

See also:
TrapdoorFunctionBounds(), RandomizedTrapdoorFunction(), TrapdoorFunction(), RandomizedTrapdoorFunctionInverse() and TrapdoorFunctionInverse()

Definition at line 69 of file pubkey.h.


Member Function Documentation

virtual Integer TrapdoorFunctionBounds::PreimageBound (  )  const [pure virtual]

Returns the maximum size of a message before the trapdoor function is applied.

Returns:
the maximum size of a message before the trapdoor function is applied

Derived classes must implement PreimageBound().

Implemented in ESIGNFunction, LUCFunction, RabinFunction, RSAFunction, RSAFunction_ISO, InvertibleRSAFunction_ISO, and RWFunction.

virtual Integer TrapdoorFunctionBounds::ImageBound (  )  const [pure virtual]

Returns the maximum size of a message after the trapdoor function is applied.

Returns:
the maximum size of a message after the trapdoor function is applied

Derived classes must implement ImageBound().

Implemented in ESIGNFunction, LUCFunction, RabinFunction, RSAFunction, and RWFunction.

virtual Integer TrapdoorFunctionBounds::MaxPreimage (  )  const [inline, virtual]

Returns the maximum size of a message before the trapdoor function is applied bound to a public key.

Returns:
the maximum size of a message before the trapdoor function is applied bound to a public key

The default implementation returns PreimageBound() - 1.

Definition at line 85 of file pubkey.h.

virtual Integer TrapdoorFunctionBounds::MaxImage (  )  const [inline, virtual]

Returns the maximum size of a message after the trapdoor function is applied bound to a public key.

Returns:
the the maximum size of a message after the trapdoor function is applied bound to a public key

The default implementation returns ImageBound() - 1.

Definition at line 89 of file pubkey.h.

Referenced by ESIGNFunction::ApplyFunction().


The documentation for this class was generated from the following file:

Generated on 24 Mar 2016 for Crypto++ by  doxygen 1.6.1