[][src]Struct tss_esapi::utils::Signature

pub struct Signature {
    pub scheme: AsymSchemeUnion,
    pub signature: SignatureData,
}

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: AsymSchemeUnionsignature: 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 in tss_signature.signature

Safety

Check "Notes on code safety" section in the crate-level documentation.

Trait Implementations

impl Debug for Signature[src]

impl TryFrom<Signature> for TPMT_SIGNATURE[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.