Browse Source

corrected the parameters

Gustavo Banegas 1 year ago
parent
commit
0d3e06425a
2 changed files with 2 additions and 7 deletions
  1. 0 5
      include/parameters/param.h
  2. 2 2
      src/encapsulation.c

+ 0 - 5
include/parameters/param.h

@@ -8,13 +8,8 @@
 #ifndef SRC_PARAMETERS_PARAM_H_
 #define SRC_PARAMETERS_PARAM_H_
 
-#if defined(DAGS_5) || defined(DAGS_3) || defined(DAGS_TOY)
 #define field 8 //2^8
-#endif
 
-#ifdef DAGS_1
-#define field 6 //2^6
-#endif
 
 #define extension 2 //m
 #define field_extension (field*extension) //

+ 2 - 2
src/encapsulation.c

@@ -46,12 +46,12 @@ int encrypt(unsigned char *ciphert_text, unsigned char *secret_shared,
 	PRINT_DEBUG_ENCAP("Generation Random M: \n");
 
 	random_m(m);
-	// Only required for DAGs_1 at the moment but do not want to hard code it.
+	/*// Only required for DAGs_1 at the moment but do not want to hard code it.
 	if (F_q_size < UCHAR_MAX){
 		for (i = 0; i < k_prime; i++) {
 			m[i] = m[i] % F_q_size;
 		}
-	}
+	}*/
 
 #ifdef DEBUG_ENCAP
 	for (i = 0; i < k_prime; i++) {