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

Early-boot-time TPM2 support #3

Merged
merged 10 commits into from
Sep 25, 2023
Merged

Early-boot-time TPM2 support #3

merged 10 commits into from
Sep 25, 2023

Conversation

SergiiDmytruk
Copy link
Member

No description provided.

Copy link
Collaborator

@krystian-hebel krystian-hebel left a comment

Choose a reason for hiding this comment

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

I haven't tested it on the hardware yet, will do it later today, I hope.

xen/arch/x86/sha256.c Outdated Show resolved Hide resolved
xen/arch/x86/tpm.c Outdated Show resolved Hide resolved
xen/arch/x86/tpm.c Outdated Show resolved Hide resolved
xen/arch/x86/tpm.c Outdated Show resolved Hide resolved
xen/arch/x86/tpm.c Outdated Show resolved Hide resolved
xen/arch/x86/tpm.c Outdated Show resolved Hide resolved
xen/arch/x86/tpm.c Show resolved Hide resolved
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
`out_digest` is used during hashing above and thus can't be NULL in
tpm_hash_extend12().  Use a throw-away buffer for the computed hash.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
From xen/arch/x86.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Not doing this caused an infinite loop waiting for a response after
sending STS_TPM_GO when TPM wasn't expecting any input and probably just
ignored it.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Align their names with names of other entities (structs and their
fields).

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
@krystian-hebel krystian-hebel merged commit 2c3b4da into aem Sep 25, 2023
4 checks passed
@krystian-hebel krystian-hebel deleted the aem-tpm2 branch September 25, 2023 20:40
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