Module tss_esapi::utils [−][src]
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 enum
s by dropping the TPMU
qualifier and appending
Union
.
Structs
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 |
TpmsContext | Rust native wrapper for |
TpmsEccParmsBuilder | Builder for |
TpmsRsaParmsBuilder | Builder for |
Enums
AsymSchemeUnion | Rust enum representation of |
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_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. |
get_tpm_vendor | Get the TPM vendor name |