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§
source§impl 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§
source§impl Clone for SignatureScheme
impl Clone for SignatureScheme
source§fn clone(&self) -> SignatureScheme
fn clone(&self) -> SignatureScheme
Returns a copy 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 SignatureScheme
impl Debug for SignatureScheme
source§impl From<SignatureScheme> for TPMT_SIG_SCHEME
impl From<SignatureScheme> for TPMT_SIG_SCHEME
source§fn from(native: SignatureScheme) -> TPMT_SIG_SCHEME
fn from(native: SignatureScheme) -> TPMT_SIG_SCHEME
Converts to this type from the input type.
source§impl PartialEq<SignatureScheme> for SignatureScheme
impl PartialEq<SignatureScheme> for SignatureScheme
source§fn 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 ==.