Struct rustls::sign::RSASigningKey [−][src]
pub struct RSASigningKey { /* fields omitted */ }
A SigningKey
for RSA-PKCS1 or RSA-PSS
Methods
impl RSASigningKey
[src]
impl RSASigningKey
pub fn new(der: &PrivateKey) -> Result<RSASigningKey, ()>
[src]
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
impl SigningKey for RSASigningKey
[src]
impl SigningKey for RSASigningKey
fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<Signer>>
[src]
fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<Signer>>
Choose a SignatureScheme
from those offered. Read more
fn algorithm(&self) -> SignatureAlgorithm
[src]
fn algorithm(&self) -> SignatureAlgorithm
What kind of key we have.
Auto Trait Implementations
impl Send for RSASigningKey
impl Send for RSASigningKey
impl Sync for RSASigningKey
impl Sync for RSASigningKey