Struct openssl::pkey::PKeyRef []

pub struct PKeyRef(_);

Methods

impl PKeyRef
[src]

[src]

Returns a copy of the internal RSA key.

[src]

Returns a copy of the internal DSA key.

[src]

Returns a copy of the internal DH key.

[src]

Returns a copy of the internal elliptic curve key.

[src]

Serializes a public key to PEM.

[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 the private key to DER.

[src]

Serializes the public key to DER.

[src]

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.

[src]

Compares the public component of this key with another.

Trait Implementations

impl Borrow<PKeyRef> for PKey

Immutably borrows from an owned value. Read more

impl AsRef<PKeyRef> for PKey

Performs the conversion.

impl ForeignTypeRef for PKeyRef

The raw C type.

Important traits for &'a mut R
[src]

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

Important traits for &'a mut R
[src]

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

[src]

Returns a raw pointer to the wrapped value.

impl Send for PKeyRef
[src]

impl Sync for PKeyRef
[src]