Crypto++  5.6.3
Free C++ class library of cryptographic schemes
Public Member Functions | List of all members
TrapdoorFunctionInverse Class Referenceabstract

Applies the inverse of the trapdoor function. More...

+ Inheritance diagram for TrapdoorFunctionInverse:

Public Member Functions

Integer CalculateRandomizedInverse (RandomNumberGenerator &rng, const Integer &x) const
 Applies the inverse of the trapdoor function. More...
bool IsRandomized () const
 Determines if the decryption algorithm is randomized. More...
virtual Integer CalculateInverse (RandomNumberGenerator &rng, const Integer &x) const =0

Detailed Description

Applies the inverse of the trapdoor function.

CalculateInverse() is the foundation for decrypting a message under a private key in a public key cryptosystem. Derived classes will override it at some point.

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

Definition at line 180 of file pubkey.h.

Member Function Documentation

Integer TrapdoorFunctionInverse::CalculateRandomizedInverse ( RandomNumberGenerator rng,
const Integer x 
) const

Applies the inverse of the trapdoor function.

rnga RandomNumberGenerator derived class
xthe message on which the decryption function is applied
the message x decrypted under the private key

CalculateRandomizedInverse is a generalization of decryption using the private key

Internally, CalculateRandomizedInverse() calls CalculateInverse() without the RandomNumberGenerator.

Implements RandomizedTrapdoorFunctionInverse.

Definition at line 192 of file pubkey.h.

bool TrapdoorFunctionInverse::IsRandomized ( ) const

Determines if the decryption algorithm is randomized.

true if the decryption algorithm is randomized, false otherwise

If IsRandomized() returns false, then NullRNG() can be used.

Reimplemented from RandomizedTrapdoorFunctionInverse.

Definition at line 198 of file pubkey.h.

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