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

This class is used to perform statistical calculations on g in a Paillier cryptosystem. More...

#include <PaillierControllerStatG.hpp>

Inheritance diagram for PaillierControllerStatG:
Collaboration diagram for PaillierControllerStatG:

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
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 g in a Paillier cryptosystem.

This class is a derivative of the PaillierController class.

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

Constructor & Destructor Documentation

◆ PaillierControllerStatG()

PaillierControllerStatG::PaillierControllerStatG ( )

Construct a new Paillier Controller Stat G object.

◆ ~PaillierControllerStatG()

PaillierControllerStatG::~PaillierControllerStatG ( )

Destroy the Paillier Controller Stat G object.

Member Function Documentation

◆ calc_encrypt_10_g()

void PaillierControllerStatG::calc_encrypt_10_g ( )

Calculate the encryption of 10 g.

Authors
Katia Auxilien
Date
30 may 2024

◆ calc_encrypt_all_g()

void PaillierControllerStatG::calc_encrypt_all_g ( )

Calculate the encryption of all g.

Parameters

authors Katia Auxilien

Date
30 may 2024

◆ checkParameters()

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

Check the parameters for the program performing statistical calculations on g.

Parameters
char*arg_in[] - The array of input arguments.
intsize_arg - The size of the input arguments array.
boolparam[] - The array of parameters to be checked. 0 bool distributeOnTwo = false; 1 bool optimisationLSB = false;
Authors
Katia Auxilien
Date
27 May 2024 11:52:00

The function checks the input arguments and sets the parameters accordingly.

◆ init()

void PaillierControllerStatG::init ( )
virtual

Initialize the PaillierControllerStatG object.

Reimplemented from PaillierController.

◆ printHelp()

void PaillierControllerStatG::printHelp ( )

Print the manual of the program.

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