Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
|
This class is used to perform statistical calculations on g in a Paillier cryptosystem. More...
#include <PaillierControllerStatG.hpp>
Public Member Functions | |
PaillierControllerStatG () | |
Construct a new Paillier Controller Stat G object. | |
~PaillierControllerStatG () | |
Destroy the Paillier Controller Stat G object. | |
void | init () |
Initialize the PaillierControllerStatG object. | |
void | checkParameters (char *arg_in[], int size_arg, bool param[]) |
Check the parameters for the program performing statistical calculations on g. | |
void | printHelp () |
Print the manual of the program. | |
void | calc_encrypt_all_g () |
Calculate the encryption of all g. | |
void | calc_encrypt_10_g () |
Calculate the encryption of 10 g. | |
Public Member Functions inherited from PaillierController | |
PaillierModel * | getModel () |
Gets the model. | |
commandLineInterface * | getView () |
Gets the view. | |
const char * | getCKeyFile () const |
Gets the key file. | |
void | setCKeyFile (char *newCKeyFile) |
Sets the key file. | |
void | generateAndSaveKeyPair () |
Generates and saves the key pair. | |
void | readKeyFile (bool isEncryption) |
Reads the key file. | |
Additional Inherited Members | |
Protected Member Functions inherited from PaillierController | |
bool | endsWith (const std::string &str, const std::string &suffix) |
Checks if the given string ends with the specified suffix. | |
void | convertToLower (char *arg_in[], int size_arg_in) |
Converts the given arguments to lower case. | |
bool | isPrime (uint64_t n, uint64_t i=2) |
Checks if the given number is prime. | |
uint64_t | check_p_q_arg (char *arg) |
Checks if the given argument is a prime number. | |
PaillierController () | |
Constructor for PaillierController. | |
~PaillierController () | |
Destructor for PaillierController. | |
Protected Attributes inherited from PaillierController | |
char * | c_key_file |
Pointer to the key file. | |
PaillierModel * | model = PaillierModel::getInstance() |
Instance of PaillierModel. | |
commandLineInterface * | view = commandLineInterface::getInstance() |
Instance of commandLineInterface. | |
This class is used to perform statistical calculations on g in a Paillier cryptosystem.
This class is a derivative of the PaillierController class.
PaillierControllerStatG::PaillierControllerStatG | ( | ) |
Construct a new Paillier Controller Stat G object.
PaillierControllerStatG::~PaillierControllerStatG | ( | ) |
Destroy the Paillier Controller Stat G object.
void PaillierControllerStatG::calc_encrypt_10_g | ( | ) |
Calculate the encryption of 10 g.
void PaillierControllerStatG::calc_encrypt_all_g | ( | ) |
Calculate the encryption of all g.
authors Katia Auxilien
void PaillierControllerStatG::checkParameters | ( | char * | arg_in[], |
int | size_arg, | ||
bool | param[] ) |
Check the parameters for the program performing statistical calculations on g.
char* | arg_in[] - The array of input arguments. |
int | size_arg - The size of the input arguments array. |
bool | param[] - The array of parameters to be checked. 0 bool distributeOnTwo = false; 1 bool optimisationLSB = false; |
The function checks the input arguments and sets the parameters accordingly.
|
virtual |
Initialize the PaillierControllerStatG object.
Reimplemented from PaillierController.
void PaillierControllerStatG::printHelp | ( | ) |
Print the manual of the program.