Struct openssl::crypto::rsa::RSA
[−]
[src]
pub struct RSA(_);
Methods
impl RSA
[src]
fn from_public_components(n: BigNum, e: BigNum) -> Result<RSA, SslError>
only useful for associating the key material directly with the key, it's safer to use the supplied load and save methods for DER formatted keys.
fn from_private_components(n: BigNum, e: BigNum, d: BigNum, p: BigNum, q: BigNum, dp: BigNum, dq: BigNum, qi: BigNum) -> Result<RSA, SslError>
unsafe fn from_raw(rsa: *mut RSA) -> RSA
the caller should assert that the rsa pointer is valid.
fn private_key_from_pem<R>(reader: &mut R) -> Result<RSA, SslError> where R: Read
Reads an RSA private key from PEM formatted data.
fn private_key_to_pem<W>(&self, writer: &mut W) -> Result<(), SslError> where W: Write
Writes an RSA private key as unencrypted PEM formatted data
fn public_key_from_pem<R>(reader: &mut R) -> Result<RSA, SslError> where R: Read
Reads an RSA public key from PEM formatted data.
fn public_key_to_pem<W>(&self, writer: &mut W) -> Result<(), SslError> where W: Write
Writes an RSA public key as PEM formatted data