-
Notifications
You must be signed in to change notification settings - Fork 161
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
Introduce Direct TPM2 API #266
Merged
Merged
Commits on Dec 15, 2021
-
This commit introduces a new method of interacting with a TPM 2.0. Instead of plumbing each TPM API into one or more Go functions, this code defines structures for every TPM 2.0 command request and response. These map 1:1 with the actual command parameters comprehended by the TPM, so any invocation of any command is possible (once all the command structures are written). This commit introduces enough of the TPM 2.0 API surface to put together some interesting end-to-end tests, mostly around sealing. Another objective of the Direct API is to facilitate use of the TPM's session-based command transport features (e.g., audit and encryption sessions). See the test code for examples of how to easily use these APIs to, e.g., set up an EK-salted session for session-encrypted unseal. Change-Id: I1549dd596869d79ddd41ff3c5f9ffdadc9628ed4
Configuration menu - View commit details
-
Copy full SHA for 7c2f71c - Browse repository at this point
Copy the full SHA 7c2f71cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5710366 - Browse repository at this point
Copy the full SHA 5710366View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0ecb01 - Browse repository at this point
Copy the full SHA a0ecb01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1693223 - Browse repository at this point
Copy the full SHA 1693223View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aa4c49 - Browse repository at this point
Copy the full SHA 2aa4c49View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7f46f0 - Browse repository at this point
Copy the full SHA c7f46f0View commit details
Commits on Jan 29, 2022
-
Use subpackages and put the Execute function on the command types (#1)
* WIP: put stuff into subpackages to make the names nice * use internal monolithic package to avoid cycles * complete the tpm2 package * fix test references to renamed types * switch to command.Execute pattern * fix some unkeyed field values detected by go vet * stop panicking from Hash
Configuration menu - View commit details
-
Copy full SHA for 90f003e - Browse repository at this point
Copy the full SHA 90f003eView commit details
Commits on Feb 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 61d3178 - Browse repository at this point
Copy the full SHA 61d3178View commit details -
Configuration menu - View commit details
-
Copy full SHA for d277081 - Browse repository at this point
Copy the full SHA d277081View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.