Struct josekit::jwk::alg::rsa::RsaKeyPair [−][src]
pub struct RsaKeyPair { /* fields omitted */ }
Implementations
pub fn into_rsa_pss_key_pair(
self,
hash: HashAlgorithm,
mgf1_hash: HashAlgorithm,
salt_len: u8
) -> RsaPssKeyPair
Create a RSA key pair from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or PKCS#1 RSAPrivateKey.
Arguments
input
- A private key that is a DER encoded PKCS#8 PrivateKeyInfo or PKCS#1 RSAPrivateKey.
Create a RSA key pair from a private key of common or traditinal PEM format.
Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo that surrounded by “—–BEGIN/END PRIVATE KEY––”.
Traditional PEM format is a DER and base64 encoded PKCS#1 RSAPrivateKey that surrounded by “—–BEGIN/END RSA PRIVATE KEY––”.
Arguments
input
- A private key of common or traditinal PEM format.
Create a RSA key pair from a private key that is formatted by a JWK of RSA type.
Arguments
jwk
- A private key that is formatted by a JWK of RSA type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RsaKeyPair
impl Send for RsaKeyPair
impl Sync for RsaKeyPair
impl Unpin for RsaKeyPair
impl UnwindSafe for RsaKeyPair
Blanket Implementations
Mutably borrows from an owned value. Read more