Enum tss_esapi::structures::SignatureScheme
source · [−]pub enum SignatureScheme {
RsaSsa {
hash_scheme: HashScheme,
},
RsaPss {
hash_scheme: HashScheme,
},
EcDsa {
hash_scheme: HashScheme,
},
Sm2 {
hash_scheme: HashScheme,
},
EcSchnorr {
hash_scheme: HashScheme,
},
EcDaa {
ecdaa_scheme: EcDaaScheme,
},
Hmac {
hmac_scheme: HmacScheme,
},
Null,
}Expand description
Variants
RsaSsa
Fields
hash_scheme: HashSchemeRsaPss
Fields
hash_scheme: HashSchemeEcDsa
Fields
hash_scheme: HashSchemeSm2
Fields
hash_scheme: HashSchemeEcSchnorr
Fields
hash_scheme: HashSchemeEcDaa
Fields
ecdaa_scheme: EcDaaSchemeHmac
Fields
hmac_scheme: HmacSchemeNull
Implementations
sourceimpl SignatureScheme
impl SignatureScheme
sourcepub fn signing_scheme(&self) -> Result<HashingAlgorithm>
pub fn signing_scheme(&self) -> Result<HashingAlgorithm>
sourcepub fn set_signing_scheme(
&mut self,
hashing_algorithm: HashingAlgorithm
) -> Result<()>
pub fn set_signing_scheme(
&mut self,
hashing_algorithm: HashingAlgorithm
) -> Result<()>
Trait Implementations
sourceimpl Clone for SignatureScheme
impl Clone for SignatureScheme
sourcefn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SignatureScheme
impl Debug for SignatureScheme
sourceimpl From<SignatureScheme> for TPMT_SIG_SCHEME
impl From<SignatureScheme> for TPMT_SIG_SCHEME
sourcefn from(native: SignatureScheme) -> TPMT_SIG_SCHEME
fn from(native: SignatureScheme) -> TPMT_SIG_SCHEME
Converts to this type from the input type.
sourceimpl PartialEq<SignatureScheme> for SignatureScheme
impl PartialEq<SignatureScheme> for SignatureScheme
sourcefn eq(&self, other: &SignatureScheme) -> bool
fn eq(&self, other: &SignatureScheme) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SignatureScheme) -> bool
fn ne(&self, other: &SignatureScheme) -> bool
This method tests for !=.
sourceimpl TryFrom<TPMT_SIG_SCHEME> for SignatureScheme
impl TryFrom<TPMT_SIG_SCHEME> for SignatureScheme
impl Copy for SignatureScheme
impl Eq for SignatureScheme
impl StructuralEq for SignatureScheme
impl StructuralPartialEq for SignatureScheme
Auto Trait Implementations
impl RefUnwindSafe for SignatureScheme
impl Send for SignatureScheme
impl Sync for SignatureScheme
impl Unpin for SignatureScheme
impl UnwindSafe for SignatureScheme
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more