Expand description
§TPM 2.0 Protocol
A library for building and parsing TCG TPM 2.0 protocol messages.
§Constraints
allocis disallowed.- Dependencies are disallowed.
- Developer dependencies are disallowed.
- Panics are disallowed.
§Design Goals
- The crate must compile with GNU make and rustc without any external dependencies.
Re-exports§
Modules§
Macros§
- tpm2b
- tpm2b_
struct - tpm_
bitflags - tpm_
bool - tpm_
dispatch - tpm_
enum - tpm_
handle - tpm_
integer - tpm_
struct - tpm_
tagged_ struct - tpml
Structs§
- TpmPersistent
- TpmSession
- TpmTransient
- TpmWriter
- Writes into a mutable byte slice.
Enums§
Constants§
- TPM_
MAX_ COMMAND_ SIZE - The maximum size of a TPM command or response buffer.
Traits§
- TpmBuild
- TpmParse
- TpmParse
Tagged - Parses a tagged object from a buffer.
- TpmSized
- Provides two ways to determine the size of an object: a compile-time maximum and a runtime exact size.
- TpmTagged
- Types that are composed of a tag and a value e.g., a union.
Functions§
- build_
tpm2b - Builds a TPM2B sized buffer.
- parse_
tpm2b - Parses a TPM2B sized buffer.
- tpm_
hash_ size - Returns the size of a hash digest in bytes for a given hash algorithm.