#[non_exhaustive]pub enum Privkey {
Ed25519(Ed25519Privkey),
Rsa(RsaPrivkey),
EcdsaP256(EcdsaPrivkey<NistP256>),
EcdsaP384(EcdsaPrivkey<NistP384>),
}
Expand description
Private key (keypair) in one of supported formats.
This enum is marked as #[non_exhaustive]
, so we might add new variants without breaking
backwards compatibility.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ed25519(Ed25519Privkey)
Ed25519 private key.
Rsa(RsaPrivkey)
RSA private key.
EcdsaP256(EcdsaPrivkey<NistP256>)
ECDSA private key on NIST P-256 curve.
EcdsaP384(EcdsaPrivkey<NistP384>)
ECDSA private key on NIST P-384 curve.
Implementations§
Trait Implementations§
source§impl PartialEq<Privkey> for Privkey
impl PartialEq<Privkey> for Privkey
impl Eq for Privkey
impl StructuralEq for Privkey
impl StructuralPartialEq for Privkey
Auto Trait Implementations§
impl RefUnwindSafe for Privkey
impl Send for Privkey
impl Sync for Privkey
impl Unpin for Privkey
impl UnwindSafe for Privkey
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