Struct keynesis::noise::ix::IX[][src]

pub struct IX<DH, H, RNG, S> where
    H: Hash
{ /* fields omitted */ }

Interactive Handshake Noise IX

Implementations

impl<DH, H, RNG> IX<DH, H, RNG, A> where
    DH: Dh,
    H: Hash
[src]

pub fn new(rng: RNG, prologue: &[u8]) -> Self[src]

impl<DH, H, RNG> IX<DH, H, RNG, A> where
    RNG: RngCore + CryptoRng,
    DH: Dh,
    H: Hash
[src]

pub fn initiate(
    self,
    s: &PublicKey,
    output: impl Write
) -> Result<IX<DH, H, RNG, WaitB>, HandshakeStateError>
[src]

impl<DH, H, RNG> IX<DH, H, RNG, A> where
    DH: Dh,
    H: Hash
[src]

pub fn receive(
    self,
    input: &[u8]
) -> Result<IX<DH, H, RNG, SendB>, HandshakeStateError>
[src]

impl<DH, H, RNG> IX<DH, H, RNG, SendB> where
    RNG: RngCore + CryptoRng,
    DH: Dh,
    H: Hash
[src]

pub fn reply(
    self,
    s: &DH,
    output: impl Write
) -> Result<TransportState<H>, HandshakeStateError>
[src]

impl<DH, H, RNG> IX<DH, H, RNG, WaitB> where
    DH: Dh,
    H: Hash
[src]

pub fn receive(
    self,
    s: &DH,
    input: &[u8]
) -> Result<TransportState<H>, HandshakeStateError>
[src]

Auto Trait Implementations

impl<DH, H, RNG, S> RefUnwindSafe for IX<DH, H, RNG, S> where
    DH: RefUnwindSafe,
    H: RefUnwindSafe,
    RNG: RefUnwindSafe,
    S: RefUnwindSafe,
    <H as Hash>::HASH: RefUnwindSafe
[src]

impl<DH, H, RNG, S> Send for IX<DH, H, RNG, S> where
    DH: Send,
    H: Send,
    RNG: Send,
    S: Send,
    <H as Hash>::HASH: Send
[src]

impl<DH, H, RNG, S> Sync for IX<DH, H, RNG, S> where
    DH: Sync,
    H: Sync,
    RNG: Sync,
    S: Sync,
    <H as Hash>::HASH: Sync
[src]

impl<DH, H, RNG, S> Unpin for IX<DH, H, RNG, S> where
    DH: Unpin,
    H: Unpin,
    RNG: Unpin,
    S: Unpin,
    <H as Hash>::HASH: Unpin
[src]

impl<DH, H, RNG, S> UnwindSafe for IX<DH, H, RNG, S> where
    DH: UnwindSafe,
    H: UnwindSafe,
    RNG: UnwindSafe,
    S: UnwindSafe,
    <H as Hash>::HASH: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,