pub enum TpmHandle {
Pcr(PcrTpmHandle),
NvIndex(NvIndexTpmHandle),
HmacSession(HmacSessionTpmHandle),
LoadedSession(LoadedSessionTpmHandle),
PolicySession(PolicySessionTpmHandle),
SavedSession(SavedSessionTpmHandle),
Permanent(PermanentTpmHandle),
Transient(TransientTpmHandle),
Persistent(PersistentTpmHandle),
AttachedComponent(AttachedComponentTpmHandle),
}
Expand description
Enum representing the different types of tpm handles of a TPM handle.
-
Details The TPM handles are used to reference shielded locations of various types within the TPM.
-
OBS Do not confuse the TpmHandles with the ESYS ObjectHandle.
Variants§
Pcr(PcrTpmHandle)
NvIndex(NvIndexTpmHandle)
HmacSession(HmacSessionTpmHandle)
LoadedSession(LoadedSessionTpmHandle)
PolicySession(PolicySessionTpmHandle)
SavedSession(SavedSessionTpmHandle)
Permanent(PermanentTpmHandle)
Transient(TransientTpmHandle)
Persistent(PersistentTpmHandle)
AttachedComponent(AttachedComponentTpmHandle)
Trait Implementations§
source§impl From<AttachedComponentTpmHandle> for TpmHandle
impl From<AttachedComponentTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: AttachedComponentTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: AttachedComponentTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<HierarchyAuth> for TpmHandle
impl From<HierarchyAuth> for TpmHandle
source§fn from(hierarchy_auth: HierarchyAuth) -> TpmHandle
fn from(hierarchy_auth: HierarchyAuth) -> TpmHandle
Converts to this type from the input type.
source§impl From<HmacSessionTpmHandle> for TpmHandle
impl From<HmacSessionTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: HmacSessionTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: HmacSessionTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<LoadedSessionTpmHandle> for TpmHandle
impl From<LoadedSessionTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: LoadedSessionTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: LoadedSessionTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<NvIndexTpmHandle> for TpmHandle
impl From<NvIndexTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: NvIndexTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: NvIndexTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<PcrTpmHandle> for TpmHandle
impl From<PcrTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: PcrTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: PcrTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<PermanentTpmHandle> for TpmHandle
impl From<PermanentTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: PermanentTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: PermanentTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<PersistentTpmHandle> for TpmHandle
impl From<PersistentTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: PersistentTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: PersistentTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<PolicySessionTpmHandle> for TpmHandle
impl From<PolicySessionTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: PolicySessionTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: PolicySessionTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<SavedSessionTpmHandle> for TpmHandle
impl From<SavedSessionTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: SavedSessionTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: SavedSessionTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl From<TpmHandle> for TPM2_HANDLE
impl From<TpmHandle> for TPM2_HANDLE
source§fn from(tpm_handle: TpmHandle) -> TPM2_HANDLE
fn from(tpm_handle: TpmHandle) -> TPM2_HANDLE
Converts to this type from the input type.
source§impl From<TransientTpmHandle> for TpmHandle
impl From<TransientTpmHandle> for TpmHandle
source§fn from(specific_tpm_handle: TransientTpmHandle) -> TpmHandle
fn from(specific_tpm_handle: TransientTpmHandle) -> TpmHandle
Converts to this type from the input type.
source§impl PartialEq for TpmHandle
impl PartialEq for TpmHandle
source§impl TryFrom<TpmHandle> for HierarchyAuth
impl TryFrom<TpmHandle> for HierarchyAuth
source§impl TryFrom<TpmHandle> for HmacSessionTpmHandle
impl TryFrom<TpmHandle> for HmacSessionTpmHandle
source§impl TryFrom<TpmHandle> for LoadedSessionTpmHandle
impl TryFrom<TpmHandle> for LoadedSessionTpmHandle
source§impl TryFrom<TpmHandle> for NvIndexTpmHandle
impl TryFrom<TpmHandle> for NvIndexTpmHandle
source§impl TryFrom<TpmHandle> for PcrTpmHandle
impl TryFrom<TpmHandle> for PcrTpmHandle
source§impl TryFrom<TpmHandle> for PermanentTpmHandle
impl TryFrom<TpmHandle> for PermanentTpmHandle
source§impl TryFrom<TpmHandle> for PersistentTpmHandle
impl TryFrom<TpmHandle> for PersistentTpmHandle
source§impl TryFrom<TpmHandle> for PolicySessionTpmHandle
impl TryFrom<TpmHandle> for PolicySessionTpmHandle
source§impl TryFrom<TpmHandle> for SavedSessionTpmHandle
impl TryFrom<TpmHandle> for SavedSessionTpmHandle
source§impl TryFrom<TpmHandle> for TransientTpmHandle
impl TryFrom<TpmHandle> for TransientTpmHandle
impl Copy for TpmHandle
impl Eq for TpmHandle
impl StructuralPartialEq for TpmHandle
Auto Trait Implementations§
impl Freeze for TpmHandle
impl RefUnwindSafe for TpmHandle
impl Send for TpmHandle
impl Sync for TpmHandle
impl Unpin for TpmHandle
impl UnwindSafe for TpmHandle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more