From 3d1baa1826d90f543a140b56ad440856d5ed83d1 Mon Sep 17 00:00:00 2001 From: Donnie-Ice Date: Thu, 19 Sep 2024 15:49:26 +0000 Subject: [PATCH] [nasa/cryptolib#316] Remove //Testing Code Comment - and specify what these are --- include/crypto_config.h | 2 ++ src/core/crypto.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/crypto_config.h b/include/crypto_config.h index ac09c723..76ff3333 100644 --- a/include/crypto_config.h +++ b/include/crypto_config.h @@ -61,6 +61,8 @@ // Max Frame Size #define TC_MAX_FRAME_SIZE 1024 +#define TM_MAX_FRAME_SIZE 1786 +#define AOS_MAX_FRAME_SIZE 1786 // Spacecraft Defines #define SCID 0x0003 diff --git a/src/core/crypto.c b/src/core/crypto.c index 73666382..dd3abad9 100644 --- a/src/core/crypto.c +++ b/src/core/crypto.c @@ -34,11 +34,11 @@ CFS_MODULE_DECLARE_LIB(crypto); */ CCSDS_t sdls_frame; // TM_t tm_frame; -uint8_t tm_frame[1786]; // Testing +uint8_t tm_frame[TM_MAX_FRAME_SIZE]; // TM Global Frame TM_FramePrimaryHeader_t tm_frame_pri_hdr; // Used to reduce bit math duplication TM_FrameSecurityHeader_t tm_frame_sec_hdr; // Used to reduce bit math duplication // AOS_t aos_frame -uint8_t aos_frame[1786]; // Testing +uint8_t aos_frame[AOS_MAX_FRAME_SIZE]; // AOS Global Frame AOS_FramePrimaryHeader_t aos_frame_pri_hdr; // Used to reduce bit math duplication AOS_FrameSecurityHeader_t aos_frame_sec_hdr; // Used to reduce bit math duplication // OCF