-
Notifications
You must be signed in to change notification settings - Fork 2
/
param.h
31 lines (28 loc) · 967 Bytes
/
param.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @defgroup evoting Lattice-based electronic voting.
*/
/**
* @file
*
* Common parameters to all lattice-based schemes.
*
* @ingroup evoting
*/
#include <sys/random.h>
#include <stdint.h>
#include <flint/flint.h>
#include <flint/fmpz_mod_poly.h>
#include <string.h>
/*============================================================================*/
/* Constant definitions */
/*============================================================================*/
/* Modulus p defining the cyclotomic ring for the commitment scheme. */
#define MODP 3906450253
/* Degree of the polynomial defining the cyclotomic ring for the commitment scheme. */
#define DEGREE 1024
/* Degree of each polynomial used to define the CRT representation. */
#define DEGCRT (DEGREE >> 1)
/* Standard deviation for discrete Gaussians. */
#define SIGMA_C 54000
// Standard deviation of discrete Gaussian
#define SIGMA_E 54000