Struct openssl::ec::EcKey [] [src]

pub struct EcKey(_);

Methods

impl EcKey
[src]

[]

Constructs an EcKey corresponding to a known curve.

It will not have an associated public or private key. This kind of key is primarily useful to be provided to the set_tmp_ecdh methods on Ssl and SslContextBuilder.

[]

Generates a new public/private key pair on the specified curve.

Deprecated since 0.9.2

: use from_curve_name

[]

Deserializes a PEM-formatted private key.

[]

Deserializes a PEM-formatted private key, using the supplied password if the key is encrypted.

Panics

Panics if passphrase contains an embedded null.

[]

Deserializes a PEM-formatted private key, using a callback to retrieve a password if the key is encrypted.

The callback should copy the password into the provided buffer and return the number of bytes written.

[]

Deserializes a private key from DER-formatted data.

Methods from Deref<Target=EcKeyRef>

[]

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.

[]

Checks the key for validity.

Trait Implementations

impl OpenSslType for EcKey
[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 EcKey
[src]

[]

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

impl Deref for EcKey
[src]

The resulting type after dereferencing

[]

The method called to dereference a value

impl DerefMut for EcKey
[src]

[]

The method called to mutably dereference a value