pub enum AsymmetricAlgorithmId {
Dh,
Dsa,
Ecdh(NamedCurve),
Ecdsa(NamedCurve),
Rsa,
}
Expand description
Asymmetric algorithm identifiers.
Variants§
Dh
The Diffie-Hellman key exchange algorithm.
Standard: PKCS #3
Dsa
The digital signature algorithm.
Standard: FIPS 186-2
Windows 8: Beginning with Windows 8, this algorithm supports FIPS 186-3. Keys less than or equal to 1024 bits adhere to FIPS 186-2 and keys greater than 1024 to FIPS 186-3.
Ecdh(NamedCurve)
Generic prime elliptic curve Diffie-Hellman key exchange algorithm.
Standard: SP800-56A, FIPS 186-2 (Curves P-{256, 384, 521}).
Ecdsa(NamedCurve)
Generic prime elliptic curve digital signature algorithm.
Standard: ANSI X9.62, FIPS 186-2 (Curves P-{256, 384, 521}).
Rsa
The RSA public key algorithm.
Standard: PKCS #1 v1.5 and v2.0.
Implementations§
Trait Implementations§
Source§impl Algorithm for AsymmetricAlgorithmId
impl Algorithm for AsymmetricAlgorithmId
fn id(&self) -> AsymmetricAlgorithmId
Source§impl Clone for AsymmetricAlgorithmId
impl Clone for AsymmetricAlgorithmId
Source§fn clone(&self) -> AsymmetricAlgorithmId
fn clone(&self) -> AsymmetricAlgorithmId
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 AsymmetricAlgorithmId
impl Debug for AsymmetricAlgorithmId
Source§impl<'a> Export<AsymmetricAlgorithmId, Private> for AsymmetricKey<AsymmetricAlgorithmId, Private>
impl<'a> Export<AsymmetricAlgorithmId, Private> for AsymmetricKey<AsymmetricAlgorithmId, Private>
Source§impl<'a> Export<AsymmetricAlgorithmId, Public> for AsymmetricKey<AsymmetricAlgorithmId, Public>
impl<'a> Export<AsymmetricAlgorithmId, Public> for AsymmetricKey<AsymmetricAlgorithmId, Public>
Source§impl<'a> Import<'a, AsymmetricAlgorithmId, Private> for AsymmetricKey<AsymmetricAlgorithmId, Private>
impl<'a> Import<'a, AsymmetricAlgorithmId, Private> for AsymmetricKey<AsymmetricAlgorithmId, Private>
type Blob = &'a Blob<ErasedKeyBlob>
fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob, ) -> Result<AsymmetricKey<A, P>>
Source§impl<'a> Import<'a, AsymmetricAlgorithmId, Public> for AsymmetricKey<AsymmetricAlgorithmId, Public>
impl<'a> Import<'a, AsymmetricAlgorithmId, Public> for AsymmetricKey<AsymmetricAlgorithmId, Public>
type Blob = &'a Blob<ErasedKeyBlob>
fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob, ) -> Result<AsymmetricKey<A, P>>
Source§impl PartialEq for AsymmetricAlgorithmId
impl PartialEq for AsymmetricAlgorithmId
Source§impl<'a> TryFrom<&'a str> for AsymmetricAlgorithmId
impl<'a> TryFrom<&'a str> for AsymmetricAlgorithmId
impl Copy for AsymmetricAlgorithmId
impl NeedsKeySize for AsymmetricAlgorithmId
impl NotNeedsKeySize for AsymmetricAlgorithmId
impl StructuralPartialEq for AsymmetricAlgorithmId
Auto Trait Implementations§
impl Freeze for AsymmetricAlgorithmId
impl RefUnwindSafe for AsymmetricAlgorithmId
impl Send for AsymmetricAlgorithmId
impl Sync for AsymmetricAlgorithmId
impl Unpin for AsymmetricAlgorithmId
impl UnwindSafe for AsymmetricAlgorithmId
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