[−][src]Struct tss_esapi::utils::Signature
Rust native representation of an asymmetric signature.
The structure contains the signature as a byte vector and the scheme with which the signature was created.
Fields
scheme: AsymSchemeUnion
signature: SignatureData
Implementations
impl Signature
[src]
pub unsafe fn try_from(tss_signature: TPMT_SIGNATURE) -> Result<Self>
[src]
Attempt to parse a signature from a TPMT_SIGNATURE
object.
Constraints
- the value of
tss_signature.sigAlg
MUST be consistent with the union field used intss_signature.signature
Safety
Check "Notes on code safety" section in the crate-level documentation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Signature
[src]
impl Send for Signature
[src]
impl Sync for Signature
[src]
impl Unpin for Signature
[src]
impl UnwindSafe for Signature
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Free for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,