Skip to content

Commit 9b5b294

Browse files
authored
Merge pull request #455 from nasa/454-use-ai-to-check-for-ccsds-compliance
454 use ai to check for ccsds compliance
2 parents 98bd0a8 + 9af9d57 commit 9b5b294

15 files changed

+1146
-268
lines changed

include/crypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ int32_t Crypto_Get_tmLength(int len);
234234
uint8_t Crypto_Is_AEAD_Algorithm(uint32_t cipher_suite_id);
235235
void Crypto_TM_updatePDU(uint8_t *ingest, int len_ingest);
236236
void Crypto_TM_updateOCF(Telemetry_Frame_Ocf_Fsr_t *report, TM_t *tm_frame);
237-
uint8_t *Crypto_Prepare_TC_AAD(uint8_t *buffer, uint16_t len_aad, uint8_t *abm_buffer);
237+
uint8_t *Crypto_Prepare_TC_AAD(const uint8_t *buffer, uint16_t len_aad, const uint8_t *abm_buffer);
238238
uint32_t Crypto_Prepare_TM_AAD(const uint8_t *buffer, uint16_t len_aad, const uint8_t *abm_buffer, uint8_t *aad);
239239
uint32_t Crypto_Prepare_AOS_AAD(const uint8_t *buffer, uint16_t len_aad, const uint8_t *abm_buffer, uint8_t *aad);
240240
void Crypto_Local_Config(void);

include/crypto_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
// Max Frame Size
4848
#define TC_MAX_FRAME_SIZE 1024
49+
#define TC_MIN_FRAME_SIZE 5
4950
#define TM_MAX_FRAME_SIZE 1786
5051
#define AOS_MAX_FRAME_SIZE 1786
5152

include/crypto_error.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@
154154
#define CRYPTO_LIB_ERR_TM_SECONDARY_HDR_SIZE (-80)
155155
#define CRYPTO_LIB_ERR_TM_SECONDARY_HDR_VN (-81)
156156
#define CRYPTO_LIB_ERR_TC_FRAME_LENGTH_MISMATCH (-82)
157+
#define CRYPTO_LIB_ERR_INVALID_AOS_IZ_LENGTH (-83)
157158

158-
#define CRYPTO_CORE_ERROR_CODES_MAX -82
159+
#define CRYPTO_CORE_ERROR_CODES_MAX -83
159160

160161
// Define codes for returning MDB Strings, and determining error based on strings
161162
#define CAM_ERROR_CODES 600

0 commit comments

Comments
 (0)