Skip to main content

Crate tpm2_protocol

Crate tpm2_protocol 

Source
Expand description

§TPM 2.0 Protocol

A library for marshaling and unmarshaling 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.

Modules§

basic
constant
data
frame
macro

Macros§

integer
tpm2b
tpm2b_struct
tpm_bitflags
tpm_bool
tpm_dispatch
tpm_enum
tpm_struct
tpml

Structs§

TpmErrorValue
Additional structured data for a TPM protocol error.
TpmWire
A byte-backed TPM wire view.
TpmWireBytes
A byte-backed TPM wire view with a fixed byte length.
TpmWriter
Builds TPM wire bytes into a caller-provided mutable byte slice.

Enums§

TpmError
TPM frame marshaling and unmarshaling error type.

Traits§

TpmCast
Casts caller-owned bytes into a TPM wire view.
TpmCastMut
Casts caller-owned mutable bytes into a mutable TPM wire view.
TpmMarshal
TpmSized
Provides two ways to determine the size of an oBject: a compile-time maximum and a runtime exact size.

Type Aliases§

TpmResult