pub struct RsaSigningKey { /* private fields */ }Expand description
An RSA signing key pair (backed by ring).
Implementations§
Source§impl RsaSigningKey
impl RsaSigningKey
Sourcepub fn from_key_der(
key: &PrivateKeyDer<'_>,
algorithm: Algorithm,
) -> DnsSecResult<Self>
pub fn from_key_der( key: &PrivateKeyDer<'_>, algorithm: Algorithm, ) -> DnsSecResult<Self>
Decode signing key pair from DER.
Sourcepub fn from_pkcs8(
key: &PrivatePkcs8KeyDer<'_>,
algorithm: Algorithm,
) -> DnsSecResult<Self>
pub fn from_pkcs8( key: &PrivatePkcs8KeyDer<'_>, algorithm: Algorithm, ) -> DnsSecResult<Self>
Decode signing key pair from DER-encoded PKCS#8 bytes.
Sourcepub fn from_pkcs1(
key: &PrivatePkcs1KeyDer<'_>,
algorithm: Algorithm,
) -> DnsSecResult<Self>
pub fn from_pkcs1( key: &PrivatePkcs1KeyDer<'_>, algorithm: Algorithm, ) -> DnsSecResult<Self>
Decode signing key pair from DER-encoded PKCS#1 bytes.
Trait Implementations§
Source§impl SigningKey for RsaSigningKey
impl SigningKey for RsaSigningKey
Source§fn to_public_key(&self) -> DnsSecResult<PublicKeyBuf>
fn to_public_key(&self) -> DnsSecResult<PublicKeyBuf>
Returns a
PublicKeyBuf for this SigningKey.Auto Trait Implementations§
impl Freeze for RsaSigningKey
impl RefUnwindSafe for RsaSigningKey
impl Send for RsaSigningKey
impl Sync for RsaSigningKey
impl Unpin for RsaSigningKey
impl UnwindSafe for RsaSigningKey
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