pub struct RsaSigningKey(/* private fields */);Expand description
An RSA signing key.
Implementations§
Source§impl RsaSigningKey
impl RsaSigningKey
Sourcepub fn from_der(der: &[u8]) -> Result<RsaSigningKey>
pub fn from_der(der: &[u8]) -> Result<RsaSigningKey>
Create a signing key from a DER-encoded set of the parameters.
Sourcepub fn to_verifying_key(&self) -> RsaVerifyingKey
pub fn to_verifying_key(&self) -> RsaVerifyingKey
Convert a signing key to a verification key.
Trait Implementations§
Source§impl AsRef<RSAPrivateKey> for RsaSigningKey
impl AsRef<RSAPrivateKey> for RsaSigningKey
Source§fn as_ref(&self) -> &RSAPrivateKey
fn as_ref(&self) -> &RSAPrivateKey
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for RsaSigningKey
impl RefUnwindSafe for RsaSigningKey
impl Send for RsaSigningKey
impl Sync for RsaSigningKey
impl Unpin for RsaSigningKey
impl UnsafeUnpin 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