pub enum PemKind {
Pkcs8,
Pkcs1Rsa,
Sec1Ec,
OpenSsh,
Ed25519HexSeed,
Ed25519Base64Seed,
Unknown,
}Expand description
The wire format inferred from a PEM blob’s BEGIN line, or Raw*
when the input is just hex/base64 seed bytes with no PEM wrapper.
Each variant maps to exactly one Signer constructor.
Variants§
Pkcs8
-----BEGIN PRIVATE KEY----- — RFC 5208 PKCS#8.
Pkcs1Rsa
-----BEGIN RSA PRIVATE KEY----- — legacy PKCS#1.
Sec1Ec
-----BEGIN EC PRIVATE KEY----- — SEC1.
OpenSsh
-----BEGIN OPENSSH PRIVATE KEY----- — not yet supported.
Ed25519HexSeed
Bare 32 hex bytes (Ed25519 seed).
Ed25519Base64Seed
Bare base64 — 32 bytes (seed) or 64 bytes (signing-key + public-key pair).
Unknown
Trait Implementations§
impl Copy for PemKind
impl Eq for PemKind
impl StructuralPartialEq for PemKind
Auto Trait Implementations§
impl Freeze for PemKind
impl RefUnwindSafe for PemKind
impl Send for PemKind
impl Sync for PemKind
impl Unpin for PemKind
impl UnsafeUnpin for PemKind
impl UnwindSafe for PemKind
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