|
Crypto++
5.6.3
Free C++ class library of cryptographic schemes
|
Applies the trapdoor function, using random data if required. More...
Inheritance diagram for RandomizedTrapdoorFunction:Public Member Functions | |
| virtual Integer | ApplyRandomizedFunction (RandomNumberGenerator &rng, const Integer &x) const =0 |
| Applies the trapdoor function, using random data if required. More... | |
| virtual bool | IsRandomized () const |
| Determines if the encryption algorithm is randomized. More... | |
| virtual Integer | PreimageBound () const =0 |
| Returns the maximum size of a message before the trapdoor function is applied. More... | |
| virtual Integer | ImageBound () const =0 |
| Returns the maximum size of a message after the trapdoor function is applied. More... | |
| virtual Integer | MaxPreimage () const |
| Returns the maximum size of a message before the trapdoor function is applied bound to a public key. More... | |
| virtual Integer | MaxImage () const |
| Returns the maximum size of a message after the trapdoor function is applied bound to a public key. More... | |
Applies the trapdoor function, using random data if required.
ApplyFunction() is the foundation for encrypting a message under a public key. Derived classes will override it at some point.
|
pure virtual |
Applies the trapdoor function, using random data if required.
| rng | a RandomNumberGenerator derived class |
| x | the message on which the encryption function is applied |
x encrypted under the public keyApplyRandomizedFunction is a generalization of encryption under a public key cryptosystem. The RandomNumberGenerator may (or may not) be required. Derived classes must implement it.
Implemented in TrapdoorFunction.
|
inlinevirtual |
Determines if the encryption algorithm is randomized.
true if the encryption algorithm is randomized, false otherwiseIf IsRandomized() returns false, then NullRNG() can be used.
Reimplemented in TrapdoorFunction.
|
pure virtualinherited |
Returns the maximum size of a message before the trapdoor function is applied.
Derived classes must implement PreimageBound().
Implemented in InvertibleRSAFunction_ISO, RSAFunction_ISO, LUCFunction, RSAFunction, ESIGNFunction, RWFunction, and RabinFunction.
|
pure virtualinherited |
Returns the maximum size of a message after the trapdoor function is applied.
Derived classes must implement ImageBound().
Implemented in LUCFunction, RSAFunction, ESIGNFunction, RWFunction, and RabinFunction.
|
inlinevirtualinherited |
Returns the maximum size of a message before the trapdoor function is applied bound to a public key.
The default implementation returns PreimageBound() - 1.
|
inlinevirtualinherited |
Returns 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().
1.8.11