|
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 r in the Paillier cryptosystem. More...
#include <PaillierControllerStatR.hpp>


Public Member Functions | |
| PaillierControllerStatR () | |
| Constructor of the PaillierControllerStatR class. | |
| ~PaillierControllerStatR () | |
| Destructor of the PaillierControllerStatR class. | |
| void | init () |
| Initialize the PaillierControllerStatR object. | |
| void | checkParameters (char *arg_in[], int size_arg, bool param[]) |
| Check parameters for the program performing statistical calculations on r. | |
| void | printHelp () |
| Afficher le manuel du programme. | |
| void | calc_encrypt () |
| Perform encryption calculations. | |
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 r in the Paillier cryptosystem.
This class is derived from the PaillierController class.
| PaillierControllerStatR::PaillierControllerStatR | ( | ) |
Constructor of the PaillierControllerStatR class.
This constructor initializes the PaillierControllerStatR object.
| PaillierControllerStatR::~PaillierControllerStatR | ( | ) |
Destructor of the PaillierControllerStatR class.
This destructor frees the memory allocated by the PaillierControllerStatR object.
| void PaillierControllerStatR::calc_encrypt | ( | ) |
Perform encryption calculations.
This function performs encryption calculations.
| void PaillierControllerStatR::checkParameters | ( | char * | arg_in[], |
| int | size_arg, | ||
| bool | param[] ) |
Check parameters for the program performing statistical calculations on r.
| char* | arg_in[] - The array of input arguments. |
| int | size_arg - The size of the input arguments array. |
| bool | param[] 0 bool useKeys = false; 1 bool distributeOnTwo = false; 2 bool optimisationLSB = false; |
This function checks the parameters for the program performing statistical calculations on r.
|
virtual |
Initialize the PaillierControllerStatR object.
This function initializes the PaillierControllerStatR object.
Reimplemented from PaillierController.
| void PaillierControllerStatR::printHelp | ( | ) |
Afficher le manuel du programme.