Browse Source

remove unused variable

Duc Nguyen 2 years ago
parent
commit
4b8744eb82
2 changed files with 1 additions and 3 deletions
  1. 0 2
      include/definitions.h
  2. 1 1
      src/decapsulation.c

+ 0 - 2
include/definitions.h

@@ -11,8 +11,6 @@
 #include <stdint.h>
 
 #define ERROR_ZERO_IN_A_POSITION -1
-static const unsigned char* K12_custom = (unsigned char*)"DAGs";
-#define K12_custom_len 4
 
 typedef uint16_t gf;
 typedef uint32_t gf_p;

+ 1 - 1
src/decapsulation.c

@@ -28,7 +28,7 @@ int decapsulation(unsigned char *secret_shared,
 
 int decrypt(unsigned char *secret_shared, const unsigned char *cipher_text,
 		const gf *v, const gf *y) {
-	int i, decode_value, check_return;
+	int i, decode_value;
 	unsigned char word[code_length] = { 0 };
 	unsigned char m1[k_prime] = { 0 };
 	unsigned char rho1[k_sec] = { 0 };