pub enum VerifyingKey {
Ecdsa(Box<dyn VerifyingKey>),
EdDsa(Box<dyn VerifyingKey>),
Rsa(Box<dyn VerifyingKey>),
}Expand description
Any verifying key.
Variants§
Ecdsa(Box<dyn VerifyingKey>)
An ECDSA verifying key.
EdDsa(Box<dyn VerifyingKey>)
An EdDSA verifying key.
Rsa(Box<dyn VerifyingKey>)
An RSA verifying key.
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
Sourcepub fn as_ecdsa(&self) -> Option<&dyn VerifyingKey>
pub fn as_ecdsa(&self) -> Option<&dyn VerifyingKey>
Get the inner EdDSA key
Sourcepub fn as_eddsa(&self) -> Option<&dyn VerifyingKey>
pub fn as_eddsa(&self) -> Option<&dyn VerifyingKey>
Get the inner ECDSA key
Sourcepub fn as_rsa(&self) -> Option<&dyn VerifyingKey>
pub fn as_rsa(&self) -> Option<&dyn VerifyingKey>
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 verifying 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 VerifyingKey
impl !RefUnwindSafe for VerifyingKey
impl !Send for VerifyingKey
impl !Sync for VerifyingKey
impl Unpin for VerifyingKey
impl !UnwindSafe for VerifyingKey
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