Skip to content

454 use ai to check for ccsds compliance #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 25, 2025
2 changes: 1 addition & 1 deletion include/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ int32_t Crypto_Get_tmLength(int len);
uint8_t Crypto_Is_AEAD_Algorithm(uint32_t cipher_suite_id);
void Crypto_TM_updatePDU(uint8_t *ingest, int len_ingest);
void Crypto_TM_updateOCF(Telemetry_Frame_Ocf_Fsr_t *report, TM_t *tm_frame);
uint8_t *Crypto_Prepare_TC_AAD(uint8_t *buffer, uint16_t len_aad, uint8_t *abm_buffer);
uint8_t *Crypto_Prepare_TC_AAD(const uint8_t *buffer, uint16_t len_aad, const uint8_t *abm_buffer);
uint32_t Crypto_Prepare_TM_AAD(const uint8_t *buffer, uint16_t len_aad, const uint8_t *abm_buffer, uint8_t *aad);
uint32_t Crypto_Prepare_AOS_AAD(const uint8_t *buffer, uint16_t len_aad, const uint8_t *abm_buffer, uint8_t *aad);
void Crypto_Local_Config(void);
Expand Down
1 change: 1 addition & 0 deletions include/crypto_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

// Max Frame Size
#define TC_MAX_FRAME_SIZE 1024
#define TC_MIN_FRAME_SIZE 5
#define TM_MAX_FRAME_SIZE 1786
#define AOS_MAX_FRAME_SIZE 1786

Expand Down
3 changes: 2 additions & 1 deletion include/crypto_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@
#define CRYPTO_LIB_ERR_TM_SECONDARY_HDR_SIZE (-80)
#define CRYPTO_LIB_ERR_TM_SECONDARY_HDR_VN (-81)
#define CRYPTO_LIB_ERR_TC_FRAME_LENGTH_MISMATCH (-82)
#define CRYPTO_LIB_ERR_INVALID_AOS_IZ_LENGTH (-83)

#define CRYPTO_CORE_ERROR_CODES_MAX -82
#define CRYPTO_CORE_ERROR_CODES_MAX -83

// Define codes for returning MDB Strings, and determining error based on strings
#define CAM_ERROR_CODES 600
Expand Down
Loading