Enum tss_esapi::structures::EccScheme
source · pub enum EccScheme {
EcDsa(HashScheme),
EcDh(HashScheme),
EcDaa(EcDaaScheme),
Sm2(HashScheme),
EcSchnorr(HashScheme),
EcMqv(HashScheme),
Null,
}
Expand description
Enum representing the ecc scheme
§Details
This corresponds to TPMT_ECC_SCHEME. This uses a subset of the TPMU_ASYM_SCHEME that has the TPMI_ALG_ECC_SCHEME as selector.
Variants§
EcDsa(HashScheme)
EcDh(HashScheme)
EcDaa(EcDaaScheme)
Sm2(HashScheme)
EcSchnorr(HashScheme)
EcMqv(HashScheme)
Null
Implementations§
source§impl EccScheme
impl EccScheme
pub fn create( ecc_scheme_algorithm: EccSchemeAlgorithm, hashing_algorithm: Option<HashingAlgorithm>, count: Option<u16> ) -> Result<Self>
pub fn algorithm(&self) -> EccSchemeAlgorithm
Trait Implementations§
source§impl From<EccScheme> for TPMT_ECC_SCHEME
impl From<EccScheme> for TPMT_ECC_SCHEME
source§impl PartialEq for EccScheme
impl PartialEq for EccScheme
source§impl TryFrom<TPMT_ECC_SCHEME> for EccScheme
impl TryFrom<TPMT_ECC_SCHEME> for EccScheme
impl Copy for EccScheme
impl Eq for EccScheme
impl StructuralPartialEq for EccScheme
Auto Trait Implementations§
impl Freeze for EccScheme
impl RefUnwindSafe for EccScheme
impl Send for EccScheme
impl Sync for EccScheme
impl Unpin for EccScheme
impl UnwindSafe for EccScheme
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