Skip to content
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

153 tm support aead encryption w/ UT #180

Merged
merged 6 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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