Skip to content

Commit

Permalink
[#196] Remove Comments, update variable to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrown6 committed Mar 26, 2024
1 parent bd84fd2 commit 26729a4
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/core/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,30 +929,6 @@ int32_t Crypto_Check_Anti_Replay(SecurityAssociation_t* sa_ptr, uint8_t* arsn, u
status = Crypto_Check_Anti_Replay_GCM(sa_ptr, iv, &iv_valid);
}

// Check for NULL pointers
// status = Crypto_Check_Anti_Replay_Verify_Pointers(sa_ptr, arsn, iv);
// if(status != CRYPTO_LIB_SUCCESS)
// {
// mc_if->mc_log(status);
// return status;
// }

// // If sequence number field is greater than zero, check for replay
// status = Crypto_Check_Anti_Replay_ARSNW(sa_ptr, arsn, &arsn_valid);
// if(status != CRYPTO_LIB_SUCCESS)
// {
// mc_if->mc_log(status);
// return status;
// }

// // If IV is greater than zero and using GCM, check for replay
// status = Crypto_Check_Anti_Replay_GCM(sa_ptr, iv, &iv_valid);
// if(status != CRYPTO_LIB_SUCCESS)
// {
// mc_if->mc_log(status);
// return status;
// }

// For GCM specifically, if have a valid IV...
if ((sa_ptr->ecs == CRYPTO_CIPHER_AES256_GCM) && (iv_valid == CRYPTO_TRUE))
{
Expand Down

0 comments on commit 26729a4

Please sign in to comment.