pub enum SigningKey {
Ecdsa(Box<dyn SigningKey>),
EdDsa(Box<dyn SigningKey>),
Rsa(Box<dyn SigningKey>),
}Expand description
Any signing key.
Variants§
Ecdsa(Box<dyn SigningKey>)
An ECDSA signing key.
EdDsa(Box<dyn SigningKey>)
An EdDSA signing key.
Rsa(Box<dyn SigningKey>)
An RSA signing key.
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn as_ecdsa(&self) -> Option<&dyn SigningKey>
pub fn as_ecdsa(&self) -> Option<&dyn SigningKey>
Get the inner EdDSA key
Sourcepub fn as_eddsa(&self) -> Option<&dyn SigningKey>
pub fn as_eddsa(&self) -> Option<&dyn SigningKey>
Get the inner ECDSA key
Sourcepub fn as_rsa(&self) -> Option<&dyn SigningKey>
pub fn as_rsa(&self) -> Option<&dyn SigningKey>
Get the inner RSA key
Sourcepub fn from_unknown_der(der: &[u8]) -> Option<Self>
pub fn from_unknown_der(der: &[u8]) -> Option<Self>
Create a signing key from a DER encoded document.
Sourcepub fn from_unknown_pem(pem: &[u8]) -> Option<Self>
pub fn from_unknown_pem(pem: &[u8]) -> Option<Self>
Create a verifying key from a PEM encoded document.
Auto Trait Implementations§
impl Freeze for SigningKey
impl !RefUnwindSafe for SigningKey
impl !Send for SigningKey
impl !Sync for SigningKey
impl Unpin 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