[][src]Module tss_esapi::utils

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.

Modules

algorithm_specifiers

Structs

ObjectAttributes
PcrSelections

A struct representing pcr selections

PcrSelectionsBuilder

A builder for the PcrSelection struct.

Signature

Rust native representation of an asymmetric signature.

Tpm2BPublicBuilder

Helper for building TPM2B_PUBLIC values out of its subcomponents.

TpmaSession

Rust native wrapper for session attributes objects.

TpmaSessionBuilder

A builder for TpmaSession.

TpmsContext

Rust native wrapper for TPMS_CONTEXT objects.

TpmsRsaParmsBuilder

Builder for TPMS_RSA_PARMS values.

TpmtSymDefBuilder

Builder for TPMT_SYM_DEF objects.

TpmtTkVerified

Rust native wrapper for TPMT_TK_VERIFIED objects.

Enums

AsymSchemeUnion

Rust enum representation of TPMU_ASYM_SCHEME.

Hierarchy

Enum describing the object hierarchies in a TPM 2.0.

PcrSelectSize
PcrSlot
PublicIdUnion

Rust enum representation of TPMU_PUBLIC_ID.

PublicParmsUnion

Rust enum representation of TPMU_PUBLIC_PARMS.

Constants

RSA_KEY_SIZES

Supported sizes for RSA key modulus

Functions

create_restricted_decryption_rsa_public

Create the TPM2B_PUBLIC structure for a restricted decryption key.

create_unrestricted_signing_rsa_public

Create the TPM2B_PUBLIC structure for an unrestricted signing key.