Struct nisty::SharedSecret [−][src]
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]
fn as_array_ref(&self) -> &[u8; 32]
[src]
impl AsArrayRef<[u8; 32]> for &SharedSecret
[src]
fn as_array_ref(&self) -> &[u8; 32]
[src]
impl Clone for SharedSecret
[src]
fn clone(&self) -> SharedSecret
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SharedSecret
[src]
impl Debug for SharedSecret
[src]
impl From<[u8; 32]> for SharedSecret
[src]
fn from(shared_secret_bytes: [u8; 32]) -> SharedSecret
[src]
impl Into<[u8; 32]> for SharedSecret
[src]
impl PartialEq<SharedSecret> for SharedSecret
[src]
fn eq(&self, other: &SharedSecret) -> bool
[src]
fn ne(&self, other: &SharedSecret) -> bool
[src]
impl StructuralPartialEq for SharedSecret
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
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>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,