22 releases (4 breaking)
| 0.5.8 | Apr 26, 2026 |
|---|---|
| 0.5.7 | Nov 29, 2025 |
| 0.4.1 | Nov 24, 2025 |
| 0.3.2 | Nov 22, 2025 |
| 0.1.6 | Nov 19, 2025 |
#1110 in Hardware support
Used in tpm2sh
36KB
660 lines
TPM 2.0 virtual context cache
tpm2-device is a Rust library for accessing TPM device files.
Submitting patches
Contributions can be submitted as merge requests.
Commit messages should follow simple kernel alike format. Write a clear summary of the change to the long description. NOTE: conventional commit messages have been abandoned despite used in the early development.
Mailing List
For broader discussions there is a mailing list.
The list can be subscribed by sending an empty message to
tpm-protocol+subscribe@lists.linux.dev, Unsubscribing follows the same exact
pattern except that the subaddress is +unsubscribe.
Emails must be in text/plain (instead of e.g., text/html) .
Documenting errors
The following snippet demonstrates the recommended pattern for documenting the return values on error:
/// # Errors
///
/// Returns [`<variant's unqualified name>`](<variant's unqualified name>)
/// Returns ...
Licensing
The tpm2-device library is licensed under the permissive MIT OR Apache-2.0
license to allow for wide adoption.
Dependencies
~9–12MB
~160K SLoC