pub struct RSASigningKey { /* private fields */ }Expand description
A SigningKey for RSA-PKCS1 or RSA-PSS
Implementations§
Source§impl RSASigningKey
impl RSASigningKey
Sourcepub fn new(der: &PrivateKey) -> Result<RSASigningKey, ()>
pub fn new(der: &PrivateKey) -> Result<RSASigningKey, ()>
Make a new RSASigningKey from a DER encoding, in either
PKCS#1 or PKCS#8 format.
Trait Implementations§
Source§impl SigningKey for RSASigningKey
impl SigningKey for RSASigningKey
Source§fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>
fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>
Choose a
SignatureScheme from those offered. Read moreSource§fn algorithm(&self) -> SignatureAlgorithm
fn algorithm(&self) -> SignatureAlgorithm
What kind of key we have.
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