Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

add support to export the full transcript (VCA + message_m) #109

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

longlongyang
Copy link
Contributor

fix #29

@longlongyang longlongyang force-pushed the i29 branch 2 times, most recently from bf3b975 to 7a61c37 Compare October 16, 2023 01:04
async fn send_receive_spdm_measurement_record(
&mut self,
session_id: Option<u32>,
measurement_attributes: SpdmMeasurementAttributes,
measurement_operation: SpdmMeasurementOperation,
spdm_measurement_record_structure: &mut SpdmMeasurementRecordStructure,
transcript_vca: &mut Option<ManagedBufferA>,
transcript_meas: &mut Option<ManagedBufferM>,
Copy link
Contributor

@jyao1 jyao1 Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the caller needs to invoke send_receive_spdm_measurement_record() multiple times, then transcript_vca will be copied multiple times.

That is not efficient.

Can we do that in init_connection()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the caller needs to invoke send_receive_spdm_measurement_record() multiple times, then transcript_vca will be copied multiple times.

That is not efficient.

Can we do that in init_connection()?

Sure, updated.

@longlongyang longlongyang force-pushed the i29 branch 2 times, most recently from e7b5803 to b15c963 Compare October 16, 2023 23:43
@longlongyang longlongyang changed the title add support to export the full transcript (VCA + message_m) for GET_MEASUREMENT. add support to export the full transcript (VCA + message_m) Oct 16, 2023
ret_message_m
.append_message(&receive_buffer[..temp_used])
.ok_or(SPDM_STATUS_BUFFER_FULL)?;
}

// verify signature
if measurement_attributes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need append signature

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need append signature

updated.

@jyao1
Copy link
Contributor

jyao1 commented Oct 17, 2023

Please also resolve conflict

@longlongyang longlongyang force-pushed the i29 branch 4 times, most recently from 83dac53 to ad57419 Compare October 17, 2023 23:46
@longlongyang
Copy link
Contributor Author

Please also resolve conflict

resolved.

@jyao1
Copy link
Contributor

jyao1 commented Oct 18, 2023

Need test to ensure the digital signature can be verified.

@longlongyang longlongyang force-pushed the i29 branch 3 times, most recently from f3ce55a to 6eb7223 Compare October 20, 2023 01:09
@longlongyang
Copy link
Contributor Author

Need test to ensure the digital signature can be verified.

new test function added.

@jyao1
Copy link
Contributor

jyao1 commented Oct 20, 2023

Looks good.

We probably need add one more test to cover one-by-one mode.

@longlongyang
Copy link
Contributor Author

Looks good.

We probably need add one more test to cover one-by-one mode.

one-by-one mode added.

@jyao1 jyao1 merged commit 4162d57 into intel:main Oct 23, 2023
26 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support to export the full transcript (VCA + message_m) for GET_MEASUREMENT
2 participants