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]
pub fn encryption_key(&self) -> Key
[src]
The negotiated key that should be used to encrypt messages to the peer.
pub fn encryption_nonce(&self) -> Nonce
[src]
The negotiated initial nonce that should be used to encrypt messages to the peer.
pub fn decryption_key(&self) -> Key
[src]
The negotiated key that should be used to decrypt messages from the peer.
pub fn decryption_nonce(&self) -> Nonce
[src]
The negotiated initial nonce that should be used to decrypt messages from the peer.
pub fn peer_longterm_pk(&self) -> PublicKey
[src]
The longterm public key of the peer.
Trait Implementations
impl Debug for Outcome
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Drop for Outcome
[src]
Zero out all sensitive data when going out of scope