Struct openssl::pkey::PKeyRef []

pub struct PKeyRef(_);

Methods

impl PKeyRef
[src]

Returns a copy of the internal RSA key.

Returns a copy of the internal DSA key.

Returns a copy of the internal DH key.

Returns a copy of the internal elliptic curve key.

Serializes a public key to PEM.

Serializes the private key to PEM.

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

Serializes the private key to DER.

Serializes the public key to DER.

Returns the size of the key.

This corresponds to the bit length of the modulus of an RSA key, and the bit length of the group order for an elliptic curve key, for example.

Compares the public component of this key with another.

Trait Implementations

impl ForeignTypeRef for PKeyRef

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.