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: HashScheme
RsaPss
Fields
§
hash_scheme: HashScheme
EcDsa
Fields
§
hash_scheme: HashScheme
Sm2
Fields
§
hash_scheme: HashScheme
EcSchnorr
Fields
§
hash_scheme: HashScheme
EcDaa
Fields
§
ecdaa_scheme: EcDaaScheme
Hmac
Fields
§
hmac_scheme: HmacScheme
Null
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 for SignatureScheme
impl PartialEq 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 ==
.source§impl TryFrom<TPMT_SIG_SCHEME> for SignatureScheme
impl TryFrom<TPMT_SIG_SCHEME> for SignatureScheme
impl Copy for SignatureScheme
impl Eq for SignatureScheme
impl StructuralPartialEq for SignatureScheme
Auto Trait Implementations§
impl Freeze for SignatureScheme
impl RefUnwindSafe for SignatureScheme
impl Send for SignatureScheme
impl Sync for SignatureScheme
impl Unpin for SignatureScheme
impl UnwindSafe for SignatureScheme
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