pub enum SigningKey {
Rsa(PrivateKey),
EcP256(PrivateKey<P256>),
EcP384(PrivateKey<P384>),
Ed25519(PrivateKey),
}Expand description
PKCS#8 Signing Key
Variants§
Rsa(PrivateKey)
An RSA private key
EcP256(PrivateKey<P256>)
An NIST P-256 private key
EcP384(PrivateKey<P384>)
An NIST P-384 private key
Ed25519(PrivateKey)
An Ed25519 key
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn from_der_private_key_info(data: &[u8]) -> Option<Self>
pub fn from_der_private_key_info(data: &[u8]) -> Option<Self>
Parse a DER-encoded PKCS#8 PrivateKeyInfo structure.
Auto Trait Implementations§
impl Freeze for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
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