Struct openssl::rsa::RsaRef []

pub struct RsaRef(_);

Methods

impl RsaRef
[src]

[src]

Serializes the private key to PEM.

[src]

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

[src]

Serializes a public key to PEM.

[src]

Serializes the private key to DER.

[src]

Serializes the public key to DER.

[src]

Serializes the public key to DER-encoded PKCS#1.

[src]

[src]

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().

[src]

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().

[src]

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

Panics

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

[src]

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

Panics

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

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl ForeignTypeRef for RsaRef

The raw C type.

[src]

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

[src]

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

[src]

Returns a raw pointer to the wrapped value.