· 6 years ago · Feb 20, 2019, 07:48 PM
1 pub async fn outgoing<S, C, EE, DE, A, D>(
2 framed: Framed<S, C>,
3 prologue: Vec<u8>,
4 hash_name: String,
5 local_secret: A,
6 local_ephemeral: A,
7 remote_public: A::PublicKey,
8 ) -> Result<Self, NoiseStreamError<A::PublicKey>>
9 where
10 S: AsyncReadExt + AsyncWriteExt,
11 C: Encoder<Item = HandshakeMessage<A::PublicKey, K>, Error = EE> + Decoder<Item = HandshakeMessage<A::PublicKey, K>, Error = DE>,
12 EE: Into<NoiseStreamError<A::PublicKey>> + From<io::Error>,
13 DE: Into<NoiseStreamError<A::PublicKey>> + From<io::Error>,
14 A: SecretKey,
15 D: Input + FixedOutput + Default + HkdfSplit,
16 D::OutputSize: ArrayLength<u8>,