Code base obscuration (for images) 1.0
It implements different obscuration methods on portable images (.pgm and .ppm)
Loading...
Searching...
No Matches
PaillierControllerStatR Class Reference

This class is used to perform statistical calculations on r in the Paillier cryptosystem. More...

#include <PaillierControllerStatR.hpp>

Inheritance diagram for PaillierControllerStatR:
Collaboration diagram for PaillierControllerStatR:

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
PaillierModelgetModel ()
 Gets the model.
 
commandLineInterfacegetView ()
 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.
 
PaillierModelmodel = PaillierModel::getInstance()
 Instance of PaillierModel.
 
commandLineInterfaceview = commandLineInterface::getInstance()
 Instance of commandLineInterface.
 

Detailed Description

This class is used to perform statistical calculations on r in the Paillier cryptosystem.

This class is derived from the PaillierController class.

Author
Katia Auxilien
Date
30 mai 2024, 15:50:00

Constructor & Destructor Documentation

◆ PaillierControllerStatR()

PaillierControllerStatR::PaillierControllerStatR ( )

Constructor of the PaillierControllerStatR class.

This constructor initializes the PaillierControllerStatR object.

Author
Katia Auxilien
Date
30 mai 2024, 15:50:00

◆ ~PaillierControllerStatR()

PaillierControllerStatR::~PaillierControllerStatR ( )

Destructor of the PaillierControllerStatR class.

This destructor frees the memory allocated by the PaillierControllerStatR object.

Author
Katia Auxilien
Date
30 mai 2024, 15:50:00

Member Function Documentation

◆ calc_encrypt()

void PaillierControllerStatR::calc_encrypt ( )

Perform encryption calculations.

This function performs encryption calculations.

Author
Katia Auxilien
Date
30 May 2024

◆ checkParameters()

void PaillierControllerStatR::checkParameters ( char * arg_in[],
int size_arg,
bool param[] )

Check parameters for the program performing statistical calculations on r.

Parameters
char*arg_in[] - The array of input arguments.
intsize_arg - The size of the input arguments array.
boolparam[] 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.

Author
Katia Auxilien
Date
27 May 2024 11:52:00

◆ init()

void PaillierControllerStatR::init ( )
virtual

Initialize the PaillierControllerStatR object.

This function initializes the PaillierControllerStatR object.

Author
Katia Auxilien
Date
30 May 2024, 15:50:00

Reimplemented from PaillierController.

◆ printHelp()

void PaillierControllerStatR::printHelp ( )

Afficher le manuel du programme.

Author
Katia Auxilien
Date
07 June 2024 16:41:00