pub enum TpmuSignature {
Rsassa(TpmsSignatureRsa),
Rsapss(TpmsSignatureRsa),
Ecdsa(TpmsSignatureEcc),
Ecdaa(TpmsSignatureEcc),
Sm2(TpmsSignatureEcc),
Ecschnorr(TpmsSignatureEcc),
Hmac(TpmtHa),
Null,
}Variants§
Rsassa(TpmsSignatureRsa)
Rsapss(TpmsSignatureRsa)
Ecdsa(TpmsSignatureEcc)
Ecdaa(TpmsSignatureEcc)
Sm2(TpmsSignatureEcc)
Ecschnorr(TpmsSignatureEcc)
Hmac(TpmtHa)
Null
Implementations§
Source§impl TpmuSignature
impl TpmuSignature
Sourcepub fn cast_tagged<'a>(
tag: TpmAlgId,
buf: &'a [u8],
) -> TpmResult<(TpmuSignatureView<'a>, &'a [u8])>
pub fn cast_tagged<'a>( tag: TpmAlgId, buf: &'a [u8], ) -> TpmResult<(TpmuSignatureView<'a>, &'a [u8])>
Casts a tag-selected union payload into a borrowed view.
§Errors
Returns Err(TpmError) when tag does not select a valid variant or
buf does not start with a valid selected payload.
Trait Implementations§
Source§impl Clone for TpmuSignature
impl Clone for TpmuSignature
Source§fn clone(&self) -> TpmuSignature
fn clone(&self) -> TpmuSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TpmuSignature
impl Debug for TpmuSignature
impl Eq for TpmuSignature
Source§impl PartialEq for TpmuSignature
impl PartialEq for TpmuSignature
Source§fn eq(&self, other: &TpmuSignature) -> bool
fn eq(&self, other: &TpmuSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpmuSignature
Source§impl TpmMarshal for TpmuSignature
impl TpmMarshal for TpmuSignature
Source§impl TpmSized for TpmuSignature
impl TpmSized for TpmuSignature
Source§impl<'a> TpmTaggedField<'a, TpmAlgId> for TpmuSignature
impl<'a> TpmTaggedField<'a, TpmAlgId> for TpmuSignature
Auto Trait Implementations§
impl Freeze for TpmuSignature
impl RefUnwindSafe for TpmuSignature
impl Send for TpmuSignature
impl Sync for TpmuSignature
impl Unpin for TpmuSignature
impl UnsafeUnpin for TpmuSignature
impl UnwindSafe for TpmuSignature
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