pub struct TpmConfig {
pub device: Option<PathBuf>,
pub hierarchy: Hierarchy,
pub parent_handle: Option<ParentHandle>,
pub parent_password: Vec<u8>,
}Expand description
Resolved configuration for the TPM backend.
Produced by TpmConfig::from_options; consumed by
[crate::backend::TpmBackend::open]. Holds the post-parse, typed
form of every option the backend reads, so the open path does not
re-do string parsing on every call.
Fields§
§device: Option<PathBuf>Path to the TPM device. None means “let tss-esapi
auto-detect” (the common case on Linux where tcti=tabrmd
finds the system TPM ResourceManager).
hierarchy: HierarchyHierarchy the parent key lives under.
parent_handle: Option<ParentHandle>Persistent handle of the parent (wrapping) key. May be None
at config time — the backend will then create a transient
parent on the fly and evict it on close. Persistent handles
survive reboot and are the production setting.
parent_password: Vec<u8>Authorisation value for the parent key. Empty by default (matches the typical owner-hierarchy deployment).