Struct openssl::ec::EcKeyRef [] [src]

pub struct EcKeyRef<T>(_, _);

Reference to EcKey

Methods

impl<T> EcKeyRef<T> where
    T: HasPrivate
[src]

[src]

Serializes the private key to a PEM-encoded ECPrivateKey structure.

The output will have a header of -----BEGIN EC PRIVATE KEY-----.

This corresponds to PEM_write_bio_ECPrivateKey.

[src]

Serializes the private key to a PEM-encoded encrypted ECPrivateKey structure.

The output will have a header of -----BEGIN EC PRIVATE KEY-----.

This corresponds to PEM_write_bio_ECPrivateKey.

[src]

Serializes the private key into a DER-encoded ECPrivateKey structure.

This corresponds to i2d_ECPrivateKey.

[src]

Return [EcPoint] associated with the private key

OpenSSL documentation at EC_KEY_get0_private_key

impl<T> EcKeyRef<T> where
    T: HasPublic
[src]

[src]

Returns the public key.

OpenSSL documentation at EC_KEY_get0_pubic_key

impl<T> EcKeyRef<T> where
    T: HasParams
[src]

[src]

Return [EcGroup] of the EcKey

OpenSSL documentation at EC_KEY_get0_group

[src]

Checks the key for validity.

OpenSSL documenation at EC_KEY_check_key

Trait Implementations

impl<T> ForeignTypeRef for EcKeyRef<T>
[src]

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.

impl<T> Send for EcKeyRef<T>
[src]

impl<T> Sync for EcKeyRef<T>
[src]

impl<T> ToOwned for EcKeyRef<T>
[src]

[src]

Creates owned data from borrowed data, usually by cloning. Read more

[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more