Struct ockam_key_exchange_x3dh::Initiator [−][src]
pub struct Initiator { /* fields omitted */ }
The responder of X3DH receives a prekey bundle and computes the shared secret to communicate the first message to the initiator
Trait Implementations
impl KeyExchanger for Initiator
[src]
impl KeyExchanger for Initiator
[src]fn process(&mut self, data: &[u8]) -> Result<Vec<u8>>
[src]
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]
fn is_complete(&self) -> bool
[src]Returns true if the key exchange process is complete.
fn finalize(self) -> Result<CompletedKeyExchange>
[src]
fn finalize(self) -> Result<CompletedKeyExchange>
[src]Return the data and keys needed for channels. Key exchange must be completed prior to calling this function.
fn finalize_box(self: Box<Self>) -> Result<CompletedKeyExchange>
[src]
fn finalize_box(self: Box<Self>) -> Result<CompletedKeyExchange>
[src]Should call finalize. Added to use KeyExchanger as trait object.
Auto Trait Implementations
impl RefUnwindSafe for Initiator
impl Send for Initiator
impl Sync for Initiator
impl Unpin for Initiator
impl UnwindSafe for Initiator
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,