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

Namespaces

namespace  Paillier_stats_on_g
 

Functions

 Paillier_stats_on_g.avg_curve_mod_k_by_r_value (t_pix_enc, vector_r_values, n, size_vec_r, p, q)
 According to r value.
 
 Paillier_stats_on_g.avg_curve_mod_k_by_r_value_inv (t_pix_enc, vector_r_values, n, size_vec_r, p, q)
 This function calculates and plots the average curve of encrypted pixels modulo k by r value for inverse encryption.
 
 Paillier_stats_on_g.avg_curve_mod_k_by_pixel_value (t_pix_enc, vector_r_values, n, size_vec_r, p, q, inverse, g)
 According to initial pixel value.
 
 Paillier_stats_on_g.avg_curve_mod_2_by_pixel_value (t_pix_enc, vector_r_values, n, size_vec_r, title)
 According to initial pixel value with differents modulo.
 
 Paillier_stats_on_g.avg_curve_mod_4_by_pixel_value (t_pix_enc, vector_r_values, n, size_vec_r, title)
 This function calculates and plots the average curve of encrypted pixels modulo 4 by pixel value.
 
 Paillier_stats_on_g.avg_curve_mod_k_by_pixel_value_in_common (t_pix_enc, t_pix_inv_enc, vector_r_values, n, size_vec_r, p, q, g)
 According to initial pixel value, with different modulo, with common values where there is no r value for modulo k = 0.
 
 Paillier_stats_on_g.traiterResultats (f_pix, p, q)
 This function processes the results and plots various curves.
 
 Paillier_stats_on_g.main ()
 The main function that processes all result files in a directory.
 

Variables

 Paillier_stats_on_g.f_pix = open(f_pix, "r")
 Initialisation, get data.
 
int Paillier_stats_on_g.p = 13
 
int Paillier_stats_on_g.q = 19
 
 Paillier_stats_on_g.lines_pix = f_pix.readlines()
 
list Paillier_stats_on_g.t_pix_avg = []
 
list Paillier_stats_on_g.count_pix = []
 
 Paillier_stats_on_g.g = int(lines_pix[0])
 
 Paillier_stats_on_g.n = int(lines_pix[1])
 
 Paillier_stats_on_g.size_vec_r = int(lines_pix[2])
 
list Paillier_stats_on_g.vector_r_values = []
 
list Paillier_stats_on_g.t_pix_enc = []
 
int Paillier_stats_on_g.line_index = 3
 
 Paillier_stats_on_g.r_value = np.uint64(lines_pix[line_index].strip())
 
list Paillier_stats_on_g.t_pix_enc_row = []
 
 Paillier_stats_on_g.pix_value = np.uint16(lines_pix[line_index].strip())
 
list Paillier_stats_on_g.t_pix_enc_inv = []
 Curves.
 
list Paillier_stats_on_g.t_pix_enc_inv_row = []
 
 Paillier_stats_on_g.x = np.invert(np.array(t_pix_enc[i][j], dtype=np.uint16))