Browse Source

prepared header encryption

pull/265/head
Logan007 4 years ago
parent
commit
3b95afc469
  1. 3
      header_encryption.c
  2. 9
      header_encryption.h

3
header_encryption.c

@ -7,9 +7,6 @@
#include "portable_endian.h"
#include <stdio.h> // !!!
#define HASH_FIND_COMMUNITY(head, name, out) HASH_FIND_STR(head, name, out)

9
header_encryption.h

@ -1,14 +1,10 @@
//#ifndef _HEADER_ENCRYPTION_H_
//#define _HEADER_ENCRYPTION_H_
#include <stdint.h>
#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

Loading…
Cancel
Save