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

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

#include <Paillier_public_key.hpp>

Public Member Functions

 PaillierPublicKey ()
 Default constructor for the PaillierPublicKey class.
 
 PaillierPublicKey (uint64_t n, uint64_t g)
 Constructor for the PaillierPublicKey class.
 
uint64_t getN () const
 Getter method for the n value.
 
uint64_t getG () const
 Getter method for the g value.
 
 ~PaillierPublicKey ()
 Destructor for the PaillierPublicKey class.
 

Detailed Description

Class representing the public key in the Paillier cryptosystem.

This class contains the n and g values necessary for encryption in the Paillier cryptosystem. It provides getter methods for these values.

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

Constructor & Destructor Documentation

◆ PaillierPublicKey() [1/2]

PaillierPublicKey::PaillierPublicKey ( )

Default constructor for the PaillierPublicKey class.

Initializes n and g to 0.

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

◆ PaillierPublicKey() [2/2]

PaillierPublicKey::PaillierPublicKey ( uint64_t n,
uint64_t g )

Constructor for the PaillierPublicKey class.

Initializes n and g with the given values.

Parameters
NThe n value.
GThe g value.
Author
Katia Auxilien
Date
28 Mai 2024, 13:55:00

◆ ~PaillierPublicKey()

PaillierPublicKey::~PaillierPublicKey ( )

Destructor for the PaillierPublicKey class.

Frees any resources used by the class.

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

Member Function Documentation

◆ getG()

uint64_t PaillierPublicKey::getG ( ) const

Getter method for the g value.

Returns the g value.

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

◆ getN()

uint64_t PaillierPublicKey::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