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
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
Performs the conversion.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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