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

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

Reference to EcKey

Methods

impl<T> EcKeyRef<T> where
    T: HasPrivate
[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.

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.

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

This corresponds to i2d_ECPrivateKey.

Return [EcPoint] associated with the private key

OpenSSL documentation at EC_KEY_get0_private_key

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

Returns the public key.

OpenSSL documentation at EC_KEY_get0_pubic_key

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

Return [EcGroup] of the EcKey

OpenSSL documentation at EC_KEY_get0_group

Checks the key for validity.

OpenSSL documenation at EC_KEY_check_key

Trait Implementations

impl<T> Borrow<EcKeyRef<T>> for EcKey<T>
[src]

Immutably borrows from an owned value. Read more

impl<T> AsRef<EcKeyRef<T>> for EcKey<T>
[src]

Performs the conversion.

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

The raw C type.

Important traits for &'a mut R

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

Important traits for &'a mut R

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

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]

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

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

recently added

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

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

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

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

recently added

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

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more