Struct openssl::crypto::rsa::RSA
[−]
[src]
pub struct RSA(_);
Methods
impl RSA
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.
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 public_key_from_pem<R>(reader: &mut R) -> Result<RSA, SslError> where R: Read
Reads an RSA public key from PEM formatted data.