pub enum AsymmetricAlgorithmSelection {
Rsa(RsaKeyBits),
Ecc(EccCurve),
}Expand description
Enum representing the asymmetric algorithm interface type with specific properties.
§Details
Use this instead of AsymmetricAlgorithm.
Variants§
Rsa(RsaKeyBits)
Ecc(EccCurve)
Trait Implementations§
Source§impl Clone for AsymmetricAlgorithmSelection
impl Clone for AsymmetricAlgorithmSelection
Source§fn clone(&self) -> AsymmetricAlgorithmSelection
fn clone(&self) -> AsymmetricAlgorithmSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AsymmetricAlgorithmSelection
Source§impl Debug for AsymmetricAlgorithmSelection
impl Debug for AsymmetricAlgorithmSelection
impl Eq for AsymmetricAlgorithmSelection
impl StructuralPartialEq for AsymmetricAlgorithmSelection
Source§impl TryFrom<AsymmetricAlgorithm> for AsymmetricAlgorithmSelection
The conversion assumes for RSA 2048 bit size and for ECC the Nist P256 curve,
which matches the defaults in tpm2-tools.
impl TryFrom<AsymmetricAlgorithm> for AsymmetricAlgorithmSelection
The conversion assumes for RSA 2048 bit size and for ECC the Nist P256 curve, which matches the defaults in tpm2-tools.
Auto Trait Implementations§
impl Freeze for AsymmetricAlgorithmSelection
impl RefUnwindSafe for AsymmetricAlgorithmSelection
impl Send for AsymmetricAlgorithmSelection
impl Sync for AsymmetricAlgorithmSelection
impl Unpin for AsymmetricAlgorithmSelection
impl UnsafeUnpin for AsymmetricAlgorithmSelection
impl UnwindSafe for AsymmetricAlgorithmSelection
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