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

FAPI: Improve error message Fapi_Quote #2764

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/tss2-fapi/ifapi_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,20 @@ ifapi_extend_vpcr(
}
}
if (event->digests.count > 0 && i == event->digests.count && !zero_digest) {
LOG_ERROR("No digest for bank %"PRIu16" found in event", bank);
LOG_ERROR("No digest for bank %"PRIu16" found in event."
"\n\nThe bank for each pcr register can be set in the FAPI profile. If, for example,"
"\nno digest for the default bank sha256 (11) exists in the eventlog of a"
"\ncertain PCR register the PCR selection has to be adapted. E.g.:"
"\n\n\"pcr_selection\": ["
"\n { \"hash\": \"TPM2_ALG_SHA1\","
"\n \"pcrSelect\": [ 0, 10 ],"
"\n },"
"\n { \"hash\": \"TPM2_ALG_SHA256\","
"\n \"pcrSelect\": [ 1, 2, ,3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15,"
"16, 17, 18, 19, 20, 21, 22, 23 ]"
"\n }"
"\n],"
, bank);
return TSS2_FAPI_RC_BAD_VALUE;
}
LOGBLOB_TRACE(&vpcr->buffer[0], vpcr->size, "New vpcr value");
Expand Down
Loading