[][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

primitives

Rust-native crypto primitive handles

Structs

ObjectAttributes
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.

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.

PublicIdUnion

Rust enum representation of TPMU_PUBLIC_ID.

PublicParmsUnion

Rust enum representation of TPMU_PUBLIC_PARMS.

Functions

get_rsa_public

Convenience method for generating TPM2B_PUBLIC objects for RSA keys based on the provided parameters.