Trait ockam_key_exchange_core::NewKeyExchanger[][src]

pub trait NewKeyExchanger {
    type Initiator: KeyExchanger + Send + 'static;
    type Responder: KeyExchanger + Send + 'static;
    fn initiator(&self) -> Result<Self::Initiator>;
fn responder(&self) -> Result<Self::Responder>; }
Expand description

A creator of both initiator and responder peers of a key exchange.

Associated Types

type Initiator: KeyExchanger + Send + 'static[src]

Initiator

type Responder: KeyExchanger + Send + 'static[src]

Responder

Required methods

fn initiator(&self) -> Result<Self::Initiator>[src]

Create a new Key Exchanger with the initiator role

fn responder(&self) -> Result<Self::Responder>[src]

Create a new Key Exchanger with the responder role

Implementors