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

rename tpmdirect to tpm2 and rename existing tpm2 as legacy/tpm2 #304

Merged
merged 7 commits into from
Sep 3, 2022
Merged

rename tpmdirect to tpm2 and rename existing tpm2 as legacy/tpm2 #304

merged 7 commits into from
Sep 3, 2022

Conversation

chrisfenner
Copy link
Member

@chrisfenner chrisfenner commented Sep 3, 2022

This PR moves the existing tpm2 package out to legacy/tpm2 and renames the direct package as tpm2.

The KDFa and KDFe helpers from the legacy API (which are needed by the new API) are moved into the new API, with the legacy API calling into the new API for htem.

A small adapter layer is added at tpm2/adapter.go to provide the API that go-tpm-tools/simulator requires. In the future, we can remove it after go-tpm-tools/simulator has been updated to use the new API.

We may flatten the new tpm2 library's sub-libraries structures and commands together into tpm2 in a future change, perhaps as part of resolving #302.

@chrisfenner chrisfenner marked this pull request as ready for review September 3, 2022 15:58
@chrisfenner chrisfenner merged commit 9860756 into google:tpmdirect Sep 3, 2022
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.

1 participant