Trait ockam_key_exchange_core::KeyExchanger[][src]

pub trait KeyExchanger {
    fn process(&mut self, data: &[u8]) -> Result<Vec<u8>>;
fn is_complete(&self) -> bool;
fn finalize(self) -> Result<CompletedKeyExchange>; }

A trait implemented by both Initiator and Responder peers.

Required methods

fn process(&mut self, data: &[u8]) -> Result<Vec<u8>>[src]

Run the current phase of the key exchange process.

fn is_complete(&self) -> bool[src]

Returns true if the key exchange process is complete.

fn finalize(self) -> Result<CompletedKeyExchange>[src]

Return the data and keys needed for channels. Key exchange must be completed prior to calling this function.

Loading content...

Implementors

Loading content...