Skip to content

Commit

Permalink
1)Fixed issue for complex access(write) condition in hmac_verify_Auth.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ying-css committed Oct 20, 2022
1 parent 2bb2719 commit 3964b6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ex_cli_applications/trustm_hmac_verify_Auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@ int main (int argc, char **argv)
trustmReadDER(read_data_buffer, (uint32_t *)&bytes_to_read, inFile);
printf("Input data : \n");
trustmHexDump(read_data_buffer,bytes_to_read);
if(uOptFlag.flags.bypass != 1)
{
// OPTIGA Comms Shielded connection settings to enable the protection
OPTIGA_UTIL_SET_COMMS_PROTOCOL_VERSION(me_util, OPTIGA_COMMS_PROTOCOL_VERSION_PRE_SHARED_SECRET);
OPTIGA_UTIL_SET_COMMS_PROTECTION_LEVEL(me_util, OPTIGA_COMMS_FULL_PROTECTION);
}
optiga_lib_status = OPTIGA_LIB_BUSY;
return_status = optiga_util_write_data(me_util,
target_oid,
Expand Down

0 comments on commit 3964b6c

Please sign in to comment.