From 48ea6165605e6c6fcb7f7005dcaf87fd3d741b6d Mon Sep 17 00:00:00 2001 From: Aveen Ismail Date: Fri, 23 Aug 2024 15:02:55 +0200 Subject: [PATCH] lib: Fix max message size --- lib/scp.h | 2 +- lib/yubihsm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/scp.h b/lib/scp.h index 24239776..3275dc78 100644 --- a/lib/scp.h +++ b/lib/scp.h @@ -49,7 +49,7 @@ #define SCP_AUTHKEY_ID_LEN 2 -#define SCP_MSG_BUF_SIZE 4096 +#define SCP_MSG_BUF_SIZE 3136 // Message #pragma pack(push, 1) diff --git a/lib/yubihsm.h b/lib/yubihsm.h index 792e767a..30270234 100644 --- a/lib/yubihsm.h +++ b/lib/yubihsm.h @@ -88,7 +88,7 @@ /// Length of host challenge for authentication #define YH_HOST_CHAL_LEN 8 /// Maximum length of message buffer -#define YH_MSG_BUF_SIZE 4096 +#define YH_MSG_BUF_SIZE 3136 /// Length of authentication keys #define YH_KEY_LEN 16 /// Device vendor ID