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
type Initiator: KeyExchanger + Send + 'static
Initiator
type Responder: KeyExchanger + Send + 'static
type Responder: KeyExchanger + Send + 'static
Responder
Required methods
Create a new Key Exchanger with the initiator role