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

Support of CpHashes from Esys Layer #2930

Open
AndreasFuchsTPM opened this issue Jan 8, 2025 · 0 comments
Open

Support of CpHashes from Esys Layer #2930

AndreasFuchsTPM opened this issue Jan 8, 2025 · 0 comments

Comments

@AndreasFuchsTPM
Copy link
Member

Proposal to add

Esys_GetCpHash(ESYS_CONTEXT* ctx, TPM2_ALG_HASH hashAlg, uint8_t **cpHash, size_t *cpHash_size); // Only to be called after Esys_*_Prepare() and before Esys_Execute/_Async() or Esys_Abort()
Esys_Abort(ESYS_CONTEXT ctx) // Can be called instead of Esys_Execute/_Async()
Esys_GetRpHash(ESYS_CONTEXT* ctx, TPM2_ALG_HASH hashAlg, uint8_t **rpHash, size_t *rpHash_size); // Only to be called after Esys_Execute/_Finish()

As a followup we could switch the tools over to this approach and clean up tpm2-tools/lib/tpm2.c.

JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 16, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 16, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 16, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 16, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 16, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 16, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 16, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 16, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 17, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 17, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 17, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 18, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 25, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Jan 25, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Feb 3, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Feb 7, 2025
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]>
JuergenReppSIT added a commit to JuergenReppSIT/tpm2-tss that referenced this issue Feb 7, 2025
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]>
AndreasFuchsTPM pushed a commit that referenced this issue Feb 19, 2025
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: #2930.

Signed-off-by: Juergen Repp <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant