-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrlwe_params_1024_40961.h
50 lines (40 loc) · 1.11 KB
/
rlwe_params_1024_40961.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* See LICENSE for complete information.
*/
#ifndef _PARAMS_H_
#define _PARAMS_H_
#if MAIN
#define EXTERN
#else
#define EXTERN extern
#endif
#include "rlwe_includes.h"
/*Parameters*/
EXTERN const RINGELT m;
EXTERN const RINGELT q;
EXTERN const RINGELT muwords, recwords;
#ifdef UNIFORM
EXTERN const RINGELT B, BB, LOG2B, BMASK;
/*[-B..B] modulo q*/
EXTERN const RINGELT small_coeff_table[11];
#endif
#ifdef NHRECONCILE
EXTERN const RINGELT rdim, rsize;
#else
EXTERN const RINGELT qmod4;
/*Quadrants defining I_0, I'_1, I'_0, I_1*/
EXTERN const RINGELT q_1_4, q_2_4, q_3_4;
/*Define intervals for rec routine*/
EXTERN const RINGELT r0_u, r0_l, r1_u, r1_l;
#endif
/*Flag to determine whether Public parameter a is held in the FFT / CRT basis*/
EXTERN int a_domain;
/*Public parameter a*/
EXTERN RINGELT a[1024];
#endif //_PARAMS_H