Skip to content

Commit

Permalink
fix for invalid measurement_index_mask for spdm v1.0/1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruva21 authored and jyao1 committed Nov 2, 2023
1 parent 226d3d8 commit 2a5c52d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -951,14 +951,15 @@ void spdm_test_case_measurements_success_10_11_12 (void *test_context, uint8_t v
measurement_record_size = measurement_record_length;
measurement_block_count = spdm_response->number_of_blocks;

if (version >= SPDM_MESSAGE_VERSION_12) {
result = spdm_test_measurement_calc_summary_hash (test_buffer->version,

result = spdm_test_measurement_calc_summary_hash (test_buffer->version,
test_buffer->hash_algo,
spdm_response->number_of_blocks,
measurement_record_length,
(void *)(spdm_response + 1),
measurement_summary_hash,
measurement_index_mask);
if (version >= SPDM_MESSAGE_VERSION_12) {
if (!result) {
common_test_record_test_assertion (
SPDM_RESPONDER_TEST_GROUP_MEASUREMENTS, case_id, COMMON_TEST_ID_END,
Expand Down

0 comments on commit 2a5c52d

Please sign in to comment.