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

Class representing the private key in the Paillier cryptosystem. More...

#include <Paillier_private_key.hpp>

Public Member Functions

 PaillierPrivateKey ()
 Default constructor for the PaillierPrivateKey class.
 
 PaillierPrivateKey (uint64_t l, uint64_t m)
 Constructor for the PaillierPrivateKey class.
 
 PaillierPrivateKey (uint64_t l, uint64_t m, uint64_t n)
 Constructor for the PaillierPrivateKey class.
 
uint64_t getLambda () const
 Getter method for the lambda value.
 
uint64_t getMu () const
 Getter method for the mu value.
 
uint64_t getN () const
 Getter method for the n value.
 
 ~PaillierPrivateKey ()
 Destructor for the PaillierPrivateKey class.
 

Detailed Description

Class representing the private key in the Paillier cryptosystem.

This class contains the lambda, mu, and n values necessary for decryption in the Paillier cryptosystem. It provides getter methods for these values.

Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00

Constructor & Destructor Documentation

◆ PaillierPrivateKey() [1/3]

PaillierPrivateKey::PaillierPrivateKey ( )

Default constructor for the PaillierPrivateKey class.

Initializes lambda and mu to 0.

Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00

◆ PaillierPrivateKey() [2/3]

PaillierPrivateKey::PaillierPrivateKey ( uint64_t l,
uint64_t m )

Constructor for the PaillierPrivateKey class.

Initializes lambda and mu with the given values.

Parameters
lThe lambda value.
mThe mu value.
Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00

◆ PaillierPrivateKey() [3/3]

PaillierPrivateKey::PaillierPrivateKey ( uint64_t l,
uint64_t m,
uint64_t n )

Constructor for the PaillierPrivateKey class.

Initializes lambda, mu, and n with the given values.

Parameters
lThe lambda value.
mThe mu value.
nnThe n value.
Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00

◆ ~PaillierPrivateKey()

PaillierPrivateKey::~PaillierPrivateKey ( )

Destructor for the PaillierPrivateKey class.

Frees any resources used by the class.

Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00

Member Function Documentation

◆ getLambda()

uint64_t PaillierPrivateKey::getLambda ( ) const

Getter method for the lambda value.

Returns the lambda value.

Returns
The lambda value.
Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00

◆ getMu()

uint64_t PaillierPrivateKey::getMu ( ) const

Getter method for the mu value.

Returns the mu value.

Returns
The mu value.
Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00

◆ getN()

uint64_t PaillierPrivateKey::getN ( ) const

Getter method for the n value.

Returns the n value.

Returns
The n value.
Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00