From bf35103b5519e81a3cb3a234816f166bf236d7d7 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 21 Apr 2025 19:38:45 +0200 Subject: Added send packets with type i.e. keyex / json-data Signed-off-by: Toni Uhlig --- ncrypt.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ncrypt.h') diff --git a/ncrypt.h b/ncrypt.h index bd2f00149..344badfcd 100644 --- a/ncrypt.h +++ b/ncrypt.h @@ -11,8 +11,6 @@ #define NCRYPT_TAG_SIZE 16 #define NCRYPT_AAD_SIZE 3 // packet type + packet size #define NCRYPT_BUFFER_SIZE NETWORK_BUFFER_MAX_SIZE -#define NCRYPT_PACKET_OVERHEAD (NCRYPT_AAD_SIZE + NCRYPT_AES_IVLEN + NCRYPT_TAG_SIZE) -#define NCRYPT_PACKET_BUFFER_SIZE (NCRYPT_PACKET_OVERHEAD + NCRYPT_BUFFER_SIZE) struct aes { @@ -24,6 +22,11 @@ struct peer nDPIsrvd_hashkey hash_key; struct nDPIsrvd_address address; unsigned char iv[NCRYPT_AES_IVLEN]; + struct + { + void * last_private_key; + void * current_private_key; + } ephemeral; size_t key_rotations; size_t cryptions; size_t crypto_errors; -- cgit v1.2.3