pub struct SessionStaticSecret(/* private fields */);
Expand description
A session secret key.
Implementations§
Source§impl SessionStaticSecret
impl SessionStaticSecret
Perform diffie-hellman
Sourcepub fn random_from_rng(csprng: &mut (impl RngCore + CryptoRng)) -> Self
pub fn random_from_rng(csprng: &mut (impl RngCore + CryptoRng)) -> Self
Create secret key from RNG.
Sourcepub fn public_key(&self) -> SessionStaticKey
pub fn public_key(&self) -> SessionStaticKey
Returns a public key corresponding to this secret key.
Trait Implementations§
Source§impl Display for SessionStaticSecret
impl Display for SessionStaticSecret
Auto Trait Implementations§
impl Freeze for SessionStaticSecret
impl RefUnwindSafe for SessionStaticSecret
impl Send for SessionStaticSecret
impl Sync for SessionStaticSecret
impl Unpin for SessionStaticSecret
impl UnwindSafe for SessionStaticSecret
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more