Skip to content

Commit

Permalink
clear start_interface_nonce after use
Browse files Browse the repository at this point in the history
Signed-off-by: Jiewen Yao <[email protected]>
  • Loading branch information
jyao1 committed Nov 6, 2023
1 parent 179d9b6 commit 9fe2e72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ libspdm_return_t pci_tdisp_lock_interface(const void *pci_doe_context,

libspdm_copy_mem (start_interface_nonce, PCI_TDISP_START_INTERFACE_NONCE_SIZE,
response.start_interface_nonce, sizeof(response.start_interface_nonce));
libspdm_zero_mem (&response.start_interface_nonce, sizeof(response.start_interface_nonce));

return LIBSPDM_STATUS_SUCCESS;
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ libspdm_return_t pci_tdisp_start_interface(const void *pci_doe_context,
status = pci_tdisp_send_receive_data(spdm_context, session_id,
&request, request_size,
&response, &response_size);
libspdm_zero_mem (&request.start_interface_nonce, sizeof(request.start_interface_nonce));
if (LIBSPDM_STATUS_IS_ERROR(status)) {
return status;
}
Expand Down

0 comments on commit 9fe2e72

Please sign in to comment.