Fabcoin Core
0.16.2
P2P Digital Currency
|
Applies the inverse of the trapdoor function, using random data if required. More...
#include <pubkey.h>
Public Member Functions | |
virtual | ~RandomizedTrapdoorFunctionInverse () |
virtual Integer | CalculateRandomizedInverse (RandomNumberGenerator &rng, const Integer &x) const =0 |
Applies the inverse of the trapdoor function, using random data if required. More... | |
virtual bool | IsRandomized () const |
Determines if the decryption algorithm is randomized. More... | |
Applies the inverse of the trapdoor function, using random data if required.
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 |
Applies the inverse of the trapdoor function, using random data if required.
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 The RandomNumberGenerator
may (or may not) be required. Derived classes must implement it.
Implemented in TrapdoorFunctionInverse, and InvertibleESIGNFunction.
|
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 in TrapdoorFunctionInverse.