Expand description

Utility module

This module mostly contains helper elements meant to act as either wrappers around FFI-level structs or builders for them, along with other convenience elements. The naming structure usually takes the names inherited from the TSS spec and applies Rust guidelines to them. Structures that are meant to act as builders have Builder appended to type name. Unions are converted to Rust enums by dropping the TPMU qualifier and appending Union.

Structs

Struct for holding PcrSlots and their corresponding values.

Struct holding pcr banks and their associated hashing algorithm

Rust native representation of an asymmetric signature.

Helper for building TPM2B_PUBLIC values out of its subcomponents.

Rust native wrapper for TPMS_CONTEXT objects.

Builder for TPMS_ECC_PARMS values.

Builder for TPMS_RSA_PARMS values.

Enums

Rust enum representation of TPMU_ASYM_SCHEME.

Rust enum representation of TPMU_PUBLIC_ID.

Rust enum representation of TPMU_PUBLIC_PARMS.

Constants

Supported sizes for RSA key modulus

Functions

Create the TPM2B_PUBLIC structure for a restricted decryption key.

Create the TPM2B_PUBLIC structure for an unrestricted encryption/decryption key.

Create the TPM2B_PUBLIC structure for an ECC unrestricted signing key.

Create the TPM2B_PUBLIC structure for an RSA unrestricted signing key.

Get the TPM vendor name