Struct rustls::sign::RSASigningKey [−][src]
pub struct RSASigningKey { /* fields omitted */ }Expand description
A SigningKey for RSA-PKCS1 or RSA-PSS
Implementations
impl RSASigningKey[src]
impl RSASigningKey[src]pub fn new(der: &PrivateKey) -> Result<RSASigningKey, ()>[src]
pub fn new(der: &PrivateKey) -> Result<RSASigningKey, ()>[src]Make a new RSASigningKey from a DER encoding, in either
PKCS#1 or PKCS#8 format.
Trait Implementations
impl SigningKey for RSASigningKey[src]
impl SigningKey for RSASigningKey[src]fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>[src]
fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>[src]Choose a SignatureScheme from those offered. Read more
fn algorithm(&self) -> SignatureAlgorithm[src]
fn algorithm(&self) -> SignatureAlgorithm[src]What kind of key we have.