aboutsummaryrefslogtreecommitdiff
path: root/ncrypt.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2025-02-24 09:40:59 +0100
committerToni Uhlig <matzeton@googlemail.com>2025-02-24 09:40:59 +0100
commit1a916a49dae7f7000b96d76ea7a6a86f5cf056fb (patch)
tree55648b6797d5f2483d6be9697e8003910204d6ac /ncrypt.h
parent6e7f0a8d179c5ea15d3cc737ffb01f69a58c14e6 (diff)
Added preps for different packet types + AAD (type+size)add/udp-aes256-gcm
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'ncrypt.h')
-rw-r--r--ncrypt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncrypt.h b/ncrypt.h
index 5983c212f..bd2f00149 100644
--- a/ncrypt.h
+++ b/ncrypt.h
@@ -13,7 +13,6 @@
#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)
-#define NCRYPT_PACKET_MIN_SIZE (NCRYPT_PACKET_OVERHEAD + NETWORK_BUFFER_LENGTH_DIGITS + 3 /* "{}\n" */)
struct aes
{
@@ -39,6 +38,7 @@ struct ncrypt
{
void * libctx;
const char * propq;
+ void * private_key;
unsigned char shared_secret[NCRYPT_X25519_KEYLEN];
struct peer * peers;
};