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
sourceimpl 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
sourceimpl From<EccScheme> for TPMT_ECC_SCHEME
impl From<EccScheme> for TPMT_ECC_SCHEME
sourceimpl TryFrom<TPMT_ECC_SCHEME> for EccScheme
impl TryFrom<TPMT_ECC_SCHEME> for EccScheme
impl Copy for EccScheme
impl Eq for EccScheme
impl StructuralEq for EccScheme
impl StructuralPartialEq for EccScheme
Auto Trait Implementations
impl RefUnwindSafe for EccScheme
impl Send for EccScheme
impl Sync for EccScheme
impl Unpin for EccScheme
impl UnwindSafe for EccScheme
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