Struct nucypher_core::SessionStaticSecret
source · pub struct SessionStaticSecret(_);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 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