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

Structs

ObjectAttributes
PcrBank

Struct for holding PcrSlots and their corresponding values.

PcrData

Struct holding pcr banks and their associated hashing algorithm

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.

TpmsEccParmsBuilder

Builder for TPMS_ECC_PARMS values.

TpmsRsaParmsBuilder

Builder for TPMS_RSA_PARMS values.

TpmtSymDefBuilder

Builder for TPMT_SYM_DEF 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.

PublicKey
PublicParmsUnion

Rust enum representation of TPMU_PUBLIC_PARMS.

SignatureData

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_encryption_decryption_rsa_public

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

create_unrestricted_signing_ecc_public

Create the TPM2B_PUBLIC structure for an ECC unrestricted signing key.

create_unrestricted_signing_rsa_public

Create the TPM2B_PUBLIC structure for an RSA unrestricted signing key.