Struct rustls::sign::RSASigningKey
source · [−]pub struct RSASigningKey { /* private fields */ }
Expand description
A SigningKey
for RSA-PKCS1 or RSA-PSS
Implementations
sourceimpl 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
sourceimpl SigningKey for RSASigningKey
impl SigningKey for RSASigningKey
sourcefn 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 moresourcefn algorithm(&self) -> SignatureAlgorithm
fn algorithm(&self) -> SignatureAlgorithm
What kind of key we have.
Auto Trait Implementations
impl RefUnwindSafe for RSASigningKey
impl Send for RSASigningKey
impl Sync for RSASigningKey
impl Unpin for RSASigningKey
impl UnwindSafe for RSASigningKey
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more