Struct revault_net::noise::KKHandshakeActOne
source · [−]pub struct KKHandshakeActOne { /* private fields */ }
Expand description
First round of the KK handshake
Implementations
sourceimpl KKHandshakeActOne
impl KKHandshakeActOne
sourcepub fn initiator(
my_privkey: &SecretKey,
their_pubkey: &PublicKey
) -> Result<(KKHandshakeActOne, KKMessageActOne), NoiseError>
pub fn initiator(
my_privkey: &SecretKey,
their_pubkey: &PublicKey
) -> Result<(KKHandshakeActOne, KKMessageActOne), NoiseError>
Start the first act of the handshake as an initiator (sharing e, es, ss)
sourcepub fn responder(
my_privkey: &SecretKey,
their_possible_pubkeys: &[PublicKey],
message: &KKMessageActOne
) -> Result<KKHandshakeActOne, NoiseError>
pub fn responder(
my_privkey: &SecretKey,
their_possible_pubkeys: &[PublicKey],
message: &KKMessageActOne
) -> Result<KKHandshakeActOne, NoiseError>
Start the first act of the handshake as a responder (reading e, es, ss and doing wizardry with it)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for KKHandshakeActOne
impl Send for KKHandshakeActOne
impl Sync for KKHandshakeActOne
impl Unpin for KKHandshakeActOne
impl !UnwindSafe for KKHandshakeActOne
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more