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 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 AsymmetricAlgorithmSelection
impl Debug for AsymmetricAlgorithmSelection
Source§impl PartialEq for AsymmetricAlgorithmSelection
impl PartialEq for AsymmetricAlgorithmSelection
Source§fn eq(&self, other: &AsymmetricAlgorithmSelection) -> bool
fn eq(&self, other: &AsymmetricAlgorithmSelection) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl TryFrom<AsymmetricAlgorithm> for AsymmetricAlgorithmSelection
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 Copy for AsymmetricAlgorithmSelection
impl Eq for AsymmetricAlgorithmSelection
impl StructuralPartialEq for AsymmetricAlgorithmSelection
Auto Trait Implementations§
impl Freeze for AsymmetricAlgorithmSelection
impl RefUnwindSafe for AsymmetricAlgorithmSelection
impl Send for AsymmetricAlgorithmSelection
impl Sync for AsymmetricAlgorithmSelection
impl Unpin 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