Struct secp256k1::SharedSecret[][src]

pub struct SharedSecret<D: Digest>(_);

Shared secret using ECDH.

Implementations

impl<D: Digest + Default> SharedSecret<D>[src]

pub fn new(
    pubkey: &PublicKey,
    seckey: &SecretKey
) -> Result<SharedSecret<D>, Error>
[src]

Trait Implementations

impl<D: Digest> AsRef<[u8]> for SharedSecret<D>[src]

impl<D: Clone + Digest> Clone for SharedSecret<D> where
    D::OutputSize: Clone
[src]

impl<D: Debug + Digest> Debug for SharedSecret<D> where
    D::OutputSize: Debug
[src]

impl<D: Digest> Drop for SharedSecret<D>[src]

impl<D: Eq + Digest> Eq for SharedSecret<D> where
    D::OutputSize: Eq
[src]

impl<D: PartialEq + Digest> PartialEq<SharedSecret<D>> for SharedSecret<D> where
    D::OutputSize: PartialEq
[src]

impl<D: Digest> StructuralEq for SharedSecret<D>[src]

impl<D: Digest> StructuralPartialEq for SharedSecret<D>[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for SharedSecret<D> where
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe

impl<D> Send for SharedSecret<D>

impl<D> Sync for SharedSecret<D>

impl<D> Unpin for SharedSecret<D> where
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin

impl<D> UnwindSafe for SharedSecret<D> where
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe

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> From<T> for T[src]

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

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

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]