[][src]Struct rc_crypto::agreement::EcKey

pub struct EcKey {
    curve: String,
    private_key: Vec<u8>,
    public_key: Vec<u8>,
}

Fields

curve: Stringprivate_key: Vec<u8>public_key: Vec<u8>

Implementations

impl EcKey[src]

pub fn new(curve: Curve, private_key: &[u8], public_key: &[u8]) -> EcKey[src]

pub fn from_coordinates(
    curve: Curve,
    d: &[u8],
    x: &[u8],
    y: &[u8]
) -> Result<EcKey, Error>
[src]

pub fn curve(&self) -> Curve[src]

pub fn public_key(&self) -> &[u8][src]

pub fn private_key(&self) -> &[u8][src]

Trait Implementations

impl Clone for EcKey[src]

impl Debug for EcKey[src]

impl<'de> Deserialize<'de> for EcKey[src]

impl PartialEq<EcKey> for EcKey[src]

impl Serialize for EcKey[src]

impl StructuralPartialEq for EcKey[src]

Auto Trait Implementations

impl RefUnwindSafe for EcKey

impl Send for EcKey

impl Sync for EcKey

impl Unpin for EcKey

impl UnwindSafe for EcKey

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.