Skip to content

Commit

Permalink
[#316] Remove unused code at line 235
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnie-Ice committed Sep 19, 2024
1 parent ffe3afe commit a49abac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
1 change: 0 additions & 1 deletion include/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ void Crypto_Local_Config(void);
void Crypto_Local_Init(void);
// int32_t Crypto_gcm_err(int gcm_err);
int32_t Crypto_window(uint8_t* actual, uint8_t* expected, int length, int window);
// int32_t Crypto_compare_less_equal(uint8_t* actual, uint8_t* expected, int length);
// int32_t Crypto_FECF(int fecf, uint8_t* ingest, int len_ingest,TC_t* tc_frame);
uint16_t Crypto_Calc_FECF(const uint8_t* ingest, int len_ingest);
void Crypto_Calc_CRC_Init_Table(void);
Expand Down
30 changes: 0 additions & 30 deletions src/core/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,36 +224,6 @@ int32_t Crypto_window(uint8_t* actual, uint8_t* expected, int length, int window
return status;
}

/**
* @brief Function: Crypto_compare_less_equal
* @param actual: uint8*
* @param expected: uint8*
* @param length: int
* @return int32: Success/Failure
**/
/*
int32_t Crypto_compare_less_equal(uint8_t* actual, uint8_t* expected, int length)
{
int status = CRYPTO_LIB_ERROR;
int i;
for(i = 0; i < length - 1; i++)
{
if (actual[i] > expected[i])
{
status = CRYPTO_LIB_SUCCESS;
break;
}
else if (actual[i] < expected[i])
{
status = CRYPTO_LIB_ERROR;
break;
}
}
return status;
}
*/

/**
* @brief Function: Crypto_Prep_Reply
* Assumes that both the pkt_length and pdu_len are set properly
Expand Down

0 comments on commit a49abac

Please sign in to comment.