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

Fixes for PCR selection and keygen with -sym= option #372

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

dgarske
Copy link
Contributor

@dgarske dgarske commented Aug 21, 2024

  • Fixes for keygen with -sym=.
  • Fixes for TPM2_SetupPCRSel.
  • Added test cases.

Fixes ZD 18492

@dgarske dgarske self-assigned this Aug 21, 2024
@dgarske dgarske requested a review from embhorn August 21, 2024 18:58
@dgarske dgarske assigned embhorn and unassigned dgarske Aug 21, 2024
TPM2_SetupPCRSelArray(&pcr, TPM_ALG_SHA256, pcrArray, 1);
pcrArray[0] = 3;
TPM2_SetupPCRSelArray(&pcr, TPM_ALG_SHA384, pcrArray, 1);
if (pcr.count != 2) {
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 to use HASH_COUNT here not 2.

@dgarske dgarske assigned dgarske and unassigned embhorn Aug 22, 2024
@dgarske dgarske assigned embhorn and unassigned dgarske Aug 22, 2024
Copy link
Member

@embhorn embhorn left a comment

Choose a reason for hiding this comment

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

Tested with RPi + slb9670

@embhorn embhorn merged commit fc683a1 into wolfSSL:master Aug 22, 2024
3 checks passed
@dgarske dgarske mentioned this pull request Nov 5, 2024
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.

2 participants