Skip to content

Commit

Permalink
Merge pull request #180 from nasa/153-tm-support-aead
Browse files Browse the repository at this point in the history
153 tm support aead encryption w/ UT
  • Loading branch information
jlucas9 authored Jul 10, 2023
2 parents 433beeb + 5fefd4c commit 468a312
Show file tree
Hide file tree
Showing 2 changed files with 289 additions and 263 deletions.
5 changes: 2 additions & 3 deletions src/core/crypto_tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,8 @@ int32_t Crypto_TC_ApplySecurity_Cam(const uint8_t* p_in_frame, const uint16_t in
return CRYPTO_LIB_ERR_KEY_LENGTH_ERROR;
}

status = cryptography_if->cryptography_aead_encrypt(&p_new_enc_frame[index], // ciphertext output
(size_t)tf_payload_len,
//&p_new_enc_frame[index], // length of data
status = cryptography_if->cryptography_aead_encrypt(&p_new_enc_frame[index], // ciphertext output
(size_t)tf_payload_len, // length of data
(uint8_t*)(p_in_frame + TC_FRAME_HEADER_SIZE + segment_hdr_len), // plaintext input
(size_t)tf_payload_len, // in data length
&(ekp->value[0]), // Key
Expand Down
Loading

0 comments on commit 468a312

Please sign in to comment.