Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
|
Class representing the public key in the Paillier cryptosystem. More...
#include <Paillier_public_key.hpp>
Public Member Functions | |
PaillierPublicKey () | |
Default constructor for the PaillierPublicKey class. | |
PaillierPublicKey (uint64_t n, uint64_t g) | |
Constructor for the PaillierPublicKey class. | |
uint64_t | getN () const |
Getter method for the n value. | |
uint64_t | getG () const |
Getter method for the g value. | |
~PaillierPublicKey () | |
Destructor for the PaillierPublicKey class. | |
Class representing the public key in the Paillier cryptosystem.
This class contains the n and g values necessary for encryption in the Paillier cryptosystem. It provides getter methods for these values.
PaillierPublicKey::PaillierPublicKey | ( | ) |
Default constructor for the PaillierPublicKey class.
Initializes n and g to 0.
PaillierPublicKey::PaillierPublicKey | ( | uint64_t | n, |
uint64_t | g ) |
Constructor for the PaillierPublicKey class.
Initializes n and g with the given values.
N | The n value. |
G | The g value. |
PaillierPublicKey::~PaillierPublicKey | ( | ) |
Destructor for the PaillierPublicKey class.
Frees any resources used by the class.
uint64_t PaillierPublicKey::getG | ( | ) | const |
Getter method for the g value.
Returns the g value.
uint64_t PaillierPublicKey::getN | ( | ) | const |
Getter method for the n value.
Returns the n value.