[−][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 enum
s 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 |
TpmaSession | Rust native wrapper for session attributes objects. |
TpmaSessionBuilder | A builder for TpmaSession. |
TpmsContext | Rust native wrapper for |
TpmsEccParmsBuilder | Builder for |
TpmsRsaParmsBuilder | Builder for |
TpmtSymDefBuilder | Builder for |
TpmtTkVerified | Rust native wrapper for |
Enums
AsymSchemeUnion | Rust enum representation of |
Hierarchy | Enum describing the object hierarchies in a TPM 2.0. |
PcrSelectSize | |
PcrSlot | |
PublicIdUnion | Rust enum representation of |
PublicKey | |
PublicParmsUnion | Rust enum representation of |
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_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. |