-
Notifications
You must be signed in to change notification settings - Fork 368
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
ESYS: Support of Cp and RpHashes from Esys Layer #2932
ESYS: Support of Cp and RpHashes from Esys Layer #2932
Conversation
cf151c6
to
9d9ffc1
Compare
1486a77
to
1bbdf2c
Compare
65cfea1
to
0e3085c
Compare
3647305
to
965c6dd
Compare
9b3d480
to
8256d4d
Compare
8256d4d
to
c0cb3b7
Compare
625602d
to
e61470a
Compare
The function is added to reset the internal state to enable a second prepare call without finishing the complete sequence of sys calls. Signed-off-by: Juergen Repp <[email protected]>
The CP buffer should still be available before Tss2_ExecuteFinish is called. Signed-off-by: Juergen Repp <[email protected]>
The ESYS API is extended with the functions: Esys_GetCpHash, Esys_GetRpHash, and Esys_Abort. The cp hash can computed after the async call of a function. The rp hash after the finish call. If only the async call is executed to to compute the cp hash Esys_Abort has to be called to enable the execution of further ESYS commands. Addresses: tpm2-software#2930. Signed-off-by: Juergen Repp <[email protected]>
e61470a
to
ef07be1
Compare
lib/tss2-tcti-null.pc.in
Outdated
includedir=@includedir@ | ||
|
||
Name: tss2-tcti-null | ||
Description: TCTI library for debugging at the TCTI interface. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description does not quite fit the purpose
src/tss2-esys/esys_cp_rp_hash.c
Outdated
r = Esys_GetSysContext(esys_ctx, &sys_ctx); | ||
return_if_error(r, "Could not get Sys context"); | ||
|
||
return Tss2_Sys_Abort(sys_ctx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would first execute Tss2_Sys_Abort and only if that succeeds we set the state to ESYS_STATE_INIT.
size_t size, | ||
const uint8_t *cmd_buf) | ||
{ | ||
UNUSED(tcti_ctx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a LOG_WARNING to each of these null calls so that the user knows something is weird here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very few comments but LGTM otherwise
ef07be1
to
0759964
Compare
A tcti module which can only used for tcti initialization is added. Signed-off-by: Juergen Repp <[email protected]>
0759964
to
1b12e09
Compare
Esys_GetCpHash, Esys_GetRpHash, and Esys_Abort.
The cp hash can computed after the async call of a function. The rp hash
after the finish call. If only the async call is executed to to compute the cp hash
Esys_Abort has to be called to enable the execution of further ESYS commands.
Addresses: #2930.