[][src]Struct x25519_dalek::SharedSecret

pub struct SharedSecret(_);

The result of a Diffie-Hellman key exchange.

Each party computes this using their EphemeralSecret or StaticSecret and their counterparty's PublicKey.


impl SharedSecret[src]

pub fn to_bytes(&self) -> [u8; 32][src]

Convert this shared secret to a byte array.

pub fn as_bytes(&self) -> &[u8; 32][src]

View this shared secret key as a byte array.

Trait Implementations

impl Drop for SharedSecret[src]

impl Zeroize for SharedSecret[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes