This commit is contained in:
Matthias Radestock committed 2014-12-12 18:46:21 +00:00
1 parent ee19e39712
commit 5ab6d7bd1f
1 file changed
+6 -6
+6 -6
View File
@@ -115,12 +115,12 @@ poorly documented, and easily used wrongly.
#### Establishing the Ephemeral Session Key #### Establishing the Ephemeral Session Key
For every connection between peers, a fresh public/private key pair is For every connection between peers, a fresh public/private key pair is
created at both ends, using NaCl's `GenerateKey` function, and the created at both ends, using NaCl's `GenerateKey` function. The public
public key portion is sent to the other end as part of the initial key portion is sent to the other end as part of the initial handshake
handshake performed over TCP. Peers that were started with `-password` performed over TCP. Peers that were started with `-password` do not
do not continue with connection establishment unless they receive a continue with connection establishment unless they receive a public
public key from the remote peer. Thus either all peers in a weave key from the remote peer. Thus either all peers in a weave network
network must be started with `-password`, or none of them. must be started with `-password`, or none of them.
When a peer has received a public key from the remote peer, it uses When a peer has received a public key from the remote peer, it uses
this to form the ephemeral session key for this connection. The public this to form the ephemeral session key for this connection. The public