Struct openssl::rsa::RsaRef []

pub struct RsaRef(_);

Methods

impl RsaRef
[src]

Serializes the private key to PEM.

Serializes the private key to PEM, encrypting it with the specified symmetric cipher and passphrase.

Serializes a public key to PEM.

Serializes the private key to DER.

Serializes the public key to DER.

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 ForeignTypeRef for RsaRef

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.