pub struct SavedTpmContext { /* private fields */ }Expand description
Structure holding the content of a TPM context.
§Details
This object can be serialized and deserialized
using serde if the serde feature is enabled.
Implementations§
Source§impl SavedTpmContext
impl SavedTpmContext
Sourcepub const fn sequence(&self) -> u64
pub const fn sequence(&self) -> u64
The sequence parameter
§Details
“The sequence parameter is used to differentiate the contexts and to allow the TPM to create a different encryption key for each context.”
Sourcepub const fn saved_handle(&self) -> Saved
pub const fn saved_handle(&self) -> Saved
The saved handle.
Sourcepub fn context_blob(&self) -> &TpmContextData
pub fn context_blob(&self) -> &TpmContextData
The context blob.
§Details
“This is the hierarchy (Hierarchy) for the saved context and determines the proof value used in the construction of the encryption and integrity values for the context. For session and sequence contexts, the hierarchy is Hierarchy::Null. The hierarchy for a transient object may be Hierarchy::Null but it is not required.”
Trait Implementations§
Source§impl Clone for SavedTpmContext
impl Clone for SavedTpmContext
Source§fn clone(&self) -> SavedTpmContext
fn clone(&self) -> SavedTpmContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SavedTpmContext
impl Debug for SavedTpmContext
Source§impl From<SavedTpmContext> for TPMS_CONTEXT
impl From<SavedTpmContext> for TPMS_CONTEXT
Source§fn from(native: SavedTpmContext) -> TPMS_CONTEXT
fn from(native: SavedTpmContext) -> TPMS_CONTEXT
Converts to this type from the input type.
Source§impl Marshall for SavedTpmContext
impl Marshall for SavedTpmContext
const BUFFER_SIZE: usize
Source§impl TryFrom<TPMS_CONTEXT> for SavedTpmContext
impl TryFrom<TPMS_CONTEXT> for SavedTpmContext
Source§fn try_from(tss: TPMS_CONTEXT) -> Result<SavedTpmContext>
fn try_from(tss: TPMS_CONTEXT) -> Result<SavedTpmContext>
Performs the conversion.
Source§impl UnMarshall for SavedTpmContext
impl UnMarshall for SavedTpmContext
Source§fn unmarshall_offset(marshalled_data: &[u8], offset: &mut usize) -> Result<Self>
fn unmarshall_offset(marshalled_data: &[u8], offset: &mut usize) -> Result<Self>
Creates the type from the marshalled data, and modifies
the
offset to point to the first byte in the marshalled_data
buffer which was not used in the conversion.Source§fn unmarshall(marshalled_data: &[u8]) -> Result<Self>
fn unmarshall(marshalled_data: &[u8]) -> Result<Self>
Creates the type from marshalled data.
Auto Trait Implementations§
impl Freeze for SavedTpmContext
impl RefUnwindSafe for SavedTpmContext
impl Send for SavedTpmContext
impl Sync for SavedTpmContext
impl Unpin for SavedTpmContext
impl UnsafeUnpin for SavedTpmContext
impl UnwindSafe for SavedTpmContext
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