Struct nisty::SharedSecret[][src]

pub struct SharedSecret(_);

Diffie-Helllman shared secret, output of key agreement.

Implementations

impl SharedSecret[src]

pub fn from_bytes(shared_secret_bytes: [u8; 32]) -> Self[src]

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

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

Trait Implementations

impl AsArrayRef<[u8; 32]> for SharedSecret[src]

impl AsArrayRef<[u8; 32]> for &SharedSecret[src]

impl Clone for SharedSecret[src]

impl Copy for SharedSecret[src]

impl Debug for SharedSecret[src]

impl From<[u8; 32]> for SharedSecret[src]

impl Into<[u8; 32]> for SharedSecret[src]

impl PartialEq<SharedSecret> for SharedSecret[src]

impl StructuralPartialEq for SharedSecret[src]

Auto Trait Implementations

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

type Output = T

Should always be Self

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.