75 if (instancePtr == NULL)
101 uint64_t
getN()
const;
109 uint64_t
getMu()
const;
117 uint64_t
getG()
const;
124 uint64_t
getP()
const;
132 uint64_t
getQ()
const;
172 void setN(uint64_t value);
179 void setMu(uint64_t value);
186 void setG(uint64_t value);
193 void setP(uint64_t value);
200 void setQ(uint64_t value);
This file contains the Paillier cryptosystem implementation in C++.
Header of the Private key class in the Paillier cryptosystem.
Header of the Public key in the Paillier cryptosystem.
This class implements the Paillier cryptosystem.
Definition Paillier.hpp:33
This class represents a singleton model for the Paillier cryptosystem.
Definition Paillier_model.hpp:32
void setN(uint64_t value)
Setter function for the n variable.
Definition Paillier_model.cpp:36
void setPrivateKey(PaillierPrivateKey value)
Setter function for the private key.
Definition Paillier_model.cpp:47
uint64_t getQ() const
Getter function for the q variable.
Definition Paillier_model.cpp:29
void setMu(uint64_t value)
Setter function for the mu variable.
Definition Paillier_model.cpp:37
void setPublicKey(PaillierPublicKey value)
Setter function for the public key.
Definition Paillier_model.cpp:54
PaillierPublicKey getPublicKey() const
Getter function for the public key.
Definition Paillier_model.cpp:32
Paillier< uint64_t, uint64_t > getPaillierGenerationKey() const
Getter function for the Paillier instance used for key generation.
Definition Paillier_model.cpp:30
static PaillierModel * getInstance()
Static function to get the singleton instance of the PaillierModel class.
Definition Paillier_model.hpp:73
void setG(uint64_t value)
Setter function for the g variable.
Definition Paillier_model.cpp:38
~PaillierModel()
Destructor for the PaillierModel class.
PaillierModel(const PaillierModel &obj)=delete
Deleted copy constructor to prevent copying of the singleton instance.
void setP(uint64_t value)
Setter function for the p variable.
Definition Paillier_model.cpp:39
uint64_t getLambda() const
Getter function for the lambda variable.
Definition Paillier_model.cpp:24
uint64_t getG() const
Getter function for the g variable.
Definition Paillier_model.cpp:27
void setQ(uint64_t value)
Setter function for the q variable.
Definition Paillier_model.cpp:40
uint64_t getN() const
Getter function for the n variable.
Definition Paillier_model.cpp:25
uint64_t getMu() const
Getter function for the mu variable.
Definition Paillier_model.cpp:26
void setLambda(uint64_t value)
Setter function for the lambda variable.
Definition Paillier_model.cpp:35
uint64_t getP() const
Getter function for the p variable.
Definition Paillier_model.cpp:28
PaillierPrivateKey getPrivateKey() const
Getter function for the private key.
Definition Paillier_model.cpp:31
void setPaillierGenerationKey(Paillier< uint64_t, uint64_t > value)
Setter function for the Paillier instance used for key generation.
Definition Paillier_model.cpp:42
Class representing the private key in the Paillier cryptosystem.
Definition Paillier_private_key.hpp:27
Class representing the public key in the Paillier cryptosystem.
Definition Paillier_public_key.hpp:24