Fabcoin Core
0.16.2
P2P Digital Currency
|
Applies the inverse of the trapdoor function. More...
#include <pubkey.h>
Public Member Functions | |
virtual | ~TrapdoorFunctionInverse () |
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 |
Calculates the inverse of an element. More... | |
Public Member Functions inherited from RandomizedTrapdoorFunctionInverse | |
virtual | ~RandomizedTrapdoorFunctionInverse () |
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.
|
inlinevirtual |
|
pure virtual |
Calculates the inverse of an element.
rng | a RandomNumberGenerator derived class |
x | the element |
Implemented in InvertibleRSAFunction_ISO, InvertibleRSAFunction, InvertibleLUCFunction, InvertibleRWFunction, and InvertibleRabinFunction.
|
inlinevirtual |
Applies the inverse of the trapdoor function.
rng | a RandomNumberGenerator derived class |
x | the message on which the decryption function is applied |
x
decrypted under the private keyCalculateRandomizedInverse
is a generalization of decryption using the private key
Internally, CalculateRandomizedInverse()
calls CalculateInverse()
without the RandomNumberGenerator
.
Implements RandomizedTrapdoorFunctionInverse.
|
inlinevirtual |
Determines if the decryption algorithm is randomized.
true
if the decryption algorithm is randomized, false
otherwiseIf IsRandomized()
returns false
, then NullRNG()
can be used.
Reimplemented from RandomizedTrapdoorFunctionInverse.