Struct openssl::pkey::PKey [] [src]

pub struct PKey(_);

Methods

impl PKey
[src]

Create a new PKey containing an RSA key.

Create a new PKey containing a DSA key.

Create a new PKey containing an HMAC key.

Reads private key from PEM, takes ownership of handle

Read a private key from PEM, supplying a password callback to be invoked if the private key is encrypted.

The callback will be passed the password buffer and should return the number of characters placed into the buffer.

Reads public key from PEM, takes ownership of handle

Methods from Deref<Target=PKeyRef>

Get a reference to the interal RSA key for direct access to the key components

Stores private key as a PEM

Encode public key in PEM format

Encode public key in DER format

Trait Implementations

impl OpenSslType for PKey
[src]

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

impl Drop for PKey
[src]

A method called when the value goes out of scope. Read more

impl Deref for PKey
[src]

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for PKey
[src]

The method called to mutably dereference a value

impl Send for PKey
[src]

impl Sync for PKey
[src]