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

SecurityPkg: Split get cert and digest from DoDeviceAuthentication #452

Merged

Conversation

Wenxing-hou
Copy link
Member

Add new feature: DoDeviceCertificate before DoDeviceAuthentication or DoDeviceMeasurement.


if (((CapabilityFlags & SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_CERT_CAP) == 0) ||
((CapabilityFlags & SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_MEAS_CAP_SIG) == 0))
Copy link

@Zhiqiang520 Zhiqiang520 Oct 10, 2023

Choose a reason for hiding this comment

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

why deleted this check (CapabilityFlags & SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_MEAS_CAP_SIG) == 0) ?
Following the PFP spec, if the device does not support MEAS_CAP with signature, AuthState should also being AUTH_FAIL_NO_SIG.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I have moved the check to the DoDeviceMeasurement.

Add new feature: DoDeviceCertificate before DoDeviceAuthentication or
DoDeviceMeasurement.

Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
@jyao1 jyao1 merged commit c253131 into tianocore:DeviceSecurity Oct 12, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants