pub enum KeyType {
RSA2048,
RSA4096,
P224,
P256,
P384,
P521,
Ed25519,
}Expand description
Defines what type of key that can be used with the certificate
Variants§
RSA2048
RSA key with a 2048-bit length.
RSA4096
RSA key with a 4096-bit length.
P224
Elliptic Curve key using the NIST P-224 curve (secp224r1).
P256
Elliptic Curve key using the NIST P-256 curve (secp256r1). Also known as prime256v1.
P384
Elliptic Curve key using the NIST P-384 curve (secp384r1).
P521
Elliptic Curve key using the NIST P-521 curve (secp521r1).
Ed25519
Edwards-curve Digital Signature Algorithm using Ed25519.
Trait Implementations§
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl Freeze for KeyType
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnsafeUnpin for KeyType
impl UnwindSafe for KeyType
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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