Struct secret_handshake::crypto::Outcome
[−]
[src]
#[repr(C)]pub struct Outcome { /* fields omitted */ }
The data resulting from a handshake: Keys and nonces suitable for encrypted two-way communication with the peer via box-stream-rs, and the longterm public key of the peer.
Methods
impl Outcome
[src]
fn encryption_key(&self) -> Key
[src]
The negotiated key that should be used to encrypt messages to the peer.
fn encryption_nonce(&self) -> Nonce
[src]
The negotiated initial nonce that should be used to encrypt messages to the peer.
fn decryption_key(&self) -> Key
[src]
The negotiated key that should be used to decrypt messages from the peer.
fn decryption_nonce(&self) -> Nonce
[src]
The negotiated initial nonce that should be used to decrypt messages from the peer.
fn peer_longterm_pk(&self) -> PublicKey
[src]
The longterm public key of the peer.
Trait Implementations
impl Debug for Outcome
[src]
impl Drop for Outcome
[src]
Zero out all sensitive data when going out of scope