Crate tpm2_protocol

Crate tpm2_protocol 

Source
Expand description

§TPM 2.0 Protocol

A library for building and parsing TCG TPM 2.0 protocol messages.

§Constraints

  • alloc is 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§

pub use buffer::TpmBuffer;
pub use list::TpmList;

Modules§

buffer
data
list
macro
message

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§

TpmErrorKind
TpmNotDiscriminant

Constants§

TPM_MAX_COMMAND_SIZE
The maximum size of a TPM command or response buffer.

Traits§

TpmBuild
TpmParse
TpmParseTagged
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.

Type Aliases§

TpmResult