Module utils

Source
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§

TpmsContext
Rust native wrapper for TPMS_CONTEXT objects.

Enums§

PublicKey
Container for public key values

Functions§

create_restricted_decryption_rsa_public
Create the Public structure for a restricted decryption key.
create_unrestricted_encryption_decryption_rsa_public
Create the Public structure for an unrestricted encryption/decryption key.
create_unrestricted_signing_ecc_public
Create the Public structure for an ECC unrestricted signing key.
create_unrestricted_signing_rsa_public
Create the Public structure for an RSA unrestricted signing key.
create_unrestricted_signing_rsa_public_with_unique
Create the Public structure for an RSA unrestricted signing key.
get_tpm_vendor
Get the TPM vendor name