#[repr(u8)]pub enum PublicKeyAlgorithm {
Show 26 variants
RSA = 1,
RSAEncrypt = 2,
RSASign = 3,
ElgamalSign = 16,
DSA = 17,
ECDH = 18,
ECDSA = 19,
Elgamal = 20,
DiffieHellman = 21,
EdDSALegacy = 22,
X25519 = 25,
X448 = 26,
Ed25519 = 27,
Ed448 = 28,
Private100 = 100,
Private101 = 101,
Private102 = 102,
Private103 = 103,
Private104 = 104,
Private105 = 105,
Private106 = 106,
Private107 = 107,
Private108 = 108,
Private109 = 109,
Private110 = 110,
Unknown(u8),
}
Variants§
RSA = 1
RSA (Encrypt and Sign)
RSAEncrypt = 2
DEPRECATED: RSA (Encrypt-Only)
RSASign = 3
DEPRECATED: RSA (Sign-Only)
ElgamalSign = 16
Elgamal (Sign-Only)
DSA = 17
DSA (Digital Signature Algorithm)
ECDH = 18
Elliptic Curve: RFC 9580 [formerly in RFC 6637]
ECDSA = 19
ECDSA: RFC 9580 [formerly in RFC 6637]
Elgamal = 20
DEPRECATED: Elgamal (Encrypt and Sign)
DiffieHellman = 21
Reserved for Diffie-Hellman (X9.42, as defined for IETF-S/MIME)
EdDSALegacy = 22
EdDSA legacy format [deprecated in RFC 9580, superseded by Ed25519 (27)]
X25519 = 25
X25519 [RFC 9580]
X448 = 26
X448 [RFC 9580]
Ed25519 = 27
Ed25519 [RFC 9580]
Ed448 = 28
Ed448 [RFC 9580]
Private100 = 100
Private experimental range (from OpenPGP)
Private101 = 101
Private102 = 102
Private103 = 103
Private104 = 104
Private105 = 105
Private106 = 106
Private107 = 107
Private108 = 108
Private109 = 109
Private110 = 110
Unknown(u8)
Trait Implementations§
Source§impl Clone for PublicKeyAlgorithm
impl Clone for PublicKeyAlgorithm
Source§fn clone(&self) -> PublicKeyAlgorithm
fn clone(&self) -> PublicKeyAlgorithm
Returns a duplicate 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 PublicKeyAlgorithm
impl Debug for PublicKeyAlgorithm
Source§impl From<PublicKeyAlgorithm> for u8
impl From<PublicKeyAlgorithm> for u8
Source§fn from(enum_value: PublicKeyAlgorithm) -> Self
fn from(enum_value: PublicKeyAlgorithm) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PublicKeyAlgorithm
impl From<u8> for PublicKeyAlgorithm
Source§impl FromPrimitive for PublicKeyAlgorithm
impl FromPrimitive for PublicKeyAlgorithm
Source§impl PartialEq for PublicKeyAlgorithm
impl PartialEq for PublicKeyAlgorithm
impl Copy for PublicKeyAlgorithm
impl Eq for PublicKeyAlgorithm
impl StructuralPartialEq for PublicKeyAlgorithm
Auto Trait Implementations§
impl Freeze for PublicKeyAlgorithm
impl RefUnwindSafe for PublicKeyAlgorithm
impl Send for PublicKeyAlgorithm
impl Sync for PublicKeyAlgorithm
impl Unpin for PublicKeyAlgorithm
impl UnwindSafe for PublicKeyAlgorithm
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