From 3b95afc469d8905929556eb25b6820a4e3e56df1 Mon Sep 17 00:00:00 2001 From: Logan007 Date: Wed, 17 Jun 2020 13:50:50 +0545 Subject: [PATCH] prepared header encryption --- header_encryption.c | 3 --- header_encryption.h | 9 +-------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/header_encryption.c b/header_encryption.c index 7866eff..7d3184c 100644 --- a/header_encryption.c +++ b/header_encryption.c @@ -7,9 +7,6 @@ #include "portable_endian.h" -#include // !!! - - #define HASH_FIND_COMMUNITY(head, name, out) HASH_FIND_STR(head, name, out) diff --git a/header_encryption.h b/header_encryption.h index dec8911..4fafd0c 100644 --- a/header_encryption.h +++ b/header_encryption.h @@ -1,14 +1,10 @@ -//#ifndef _HEADER_ENCRYPTION_H_ -//#define _HEADER_ENCRYPTION_H_ - - #include #include "n2n.h" #include "speck.h" -//define he_context_t speck_context_t + typedef struct speck_context_t he_context_t; @@ -30,6 +26,3 @@ int32_t packet_header_encrypt (uint8_t packet[], uint8_t header_len, he_context_ void packet_header_setup_key (char * community_name, he_context_t * ctx); - - -// #endif