pub struct TpmtSensitive {
pub sensitive_type: TpmAlgId,
pub auth_value: Tpm2bAuth,
pub seed_value: Tpm2bDigest,
pub sensitive: TpmuSensitiveComposite,
}Fields§
§sensitive_type: TpmAlgId§auth_value: Tpm2bAuth§seed_value: Tpm2bDigest§sensitive: TpmuSensitiveCompositeImplementations§
Source§impl TpmtSensitive
impl TpmtSensitive
Sourcepub fn from_private_bytes(
key_alg: TpmAlgId,
private_bytes: &[u8],
) -> Result<Self, TpmErrorKind>
pub fn from_private_bytes( key_alg: TpmAlgId, private_bytes: &[u8], ) -> Result<Self, TpmErrorKind>
Constructs a TpmtSensitive from a given key algorithm and raw private key bytes.
§Errors
Returns a TpmErrorKind::InvalidValue if the key algorithm is not supported for this operation.
Trait Implementations§
Source§impl Clone for TpmtSensitive
impl Clone for TpmtSensitive
Source§fn clone(&self) -> TpmtSensitive
fn clone(&self) -> TpmtSensitive
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 TpmtSensitive
impl Debug for TpmtSensitive
Source§impl Default for TpmtSensitive
impl Default for TpmtSensitive
Source§fn default() -> TpmtSensitive
fn default() -> TpmtSensitive
Returns the “default value” for a type. Read more
Source§impl From<TpmtSensitive> for Tpm2bSensitive
impl From<TpmtSensitive> for Tpm2bSensitive
Source§fn from(inner: TpmtSensitive) -> Self
fn from(inner: TpmtSensitive) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TpmtSensitive
impl PartialEq for TpmtSensitive
Source§impl TpmBuild for TpmtSensitive
impl TpmBuild for TpmtSensitive
Source§impl<'a> TpmParse<'a> for TpmtSensitive
impl<'a> TpmParse<'a> for TpmtSensitive
Source§impl TpmSized for TpmtSensitive
impl TpmSized for TpmtSensitive
Source§impl TpmTagged for TpmtSensitive
impl TpmTagged for TpmtSensitive
impl Eq for TpmtSensitive
impl StructuralPartialEq for TpmtSensitive
Auto Trait Implementations§
impl Freeze for TpmtSensitive
impl RefUnwindSafe for TpmtSensitive
impl Send for TpmtSensitive
impl Sync for TpmtSensitive
impl Unpin for TpmtSensitive
impl UnwindSafe for TpmtSensitive
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