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.

fn as_ptr(&self) -> *mut RSA

fn n(&self) -> Result<BigNum, SslError>

fn has_n(&self) -> bool

fn d(&self) -> Result<BigNum, SslError>

fn e(&self) -> Result<BigNum, SslError>

fn has_e(&self) -> bool

fn p(&self) -> Result<BigNum, SslError>

fn q(&self) -> Result<BigNum, SslError>

Trait Implementations

impl Drop for RSA

fn drop(&mut self)

impl Debug for RSA

fn fmt(&self, f: &mut Formatter) -> Result