Struct openssl::rsa::RsaRef [] [src]

pub struct RsaRef(_);

Methods

impl RsaRef
[src]

Writes an RSA private key as unencrypted PEM formatted data

Writes an RSA public key as PEM formatted data

Decrypts data using the private key, returning the number of decrypted bytes.

Panics

Panics if self has no private components, or if to is smaller than self.size().

Encrypts data using the private key, returning the number of encrypted bytes.

Panics

Panics if self has no private components, or if to is smaller than self.size().

Decrypts data using the public key, returning the number of decrypted bytes.

Panics

Panics if to is smaller than self.size().

Encrypts data using the private key, returning the number of encrypted bytes.

Panics

Panics if to is smaller than self.size().

Trait Implementations

impl OpenSslTypeRef for RsaRef
[src]

The raw C type.

Constructs a shared instance of this type from its raw type.

Constructs a mutable reference of this type from its raw type.

Returns a raw pointer to the wrapped value.