Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tok-kkk committed Nov 28, 2019
1 parent cf1b01f commit 7617df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handshake/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ func (hs *handshaker) AcceptHandshake(ctx context.Context, rw io.ReadWriter) (pr
return nil, err
}

// 3. Read and decrypt the session key from the server.
// 3. Read and decrypt the session key from the client.
remoteSessionKey, err := hs.readEncrypted(rw, localPrivateKey)
if err != nil {
return nil, err
}

// 4. Generate a session key and write to server
// 4. Generate a session key and write to client
localSessionKey := hs.sessionManager.NewSessionKey()
if err := hs.writeEncrypted(rw, localSessionKey, remotePublicKey); err != nil {
return nil, err
Expand Down

0 comments on commit 7617df3

Please sign in to comment.