Update p2p/conn/secret_connection.go

Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
This commit is contained in:
Zaki Manian
2019-07-18 08:20:36 -07:00
committed by GitHub
parent 0c90c3059b
commit ef8ff074a3

View File

@@ -125,7 +125,7 @@ func MakeSecretConnection(conn io.ReadWriteCloser, locPrivKey crypto.PrivKey) (*
return nil, err
}
// generate the secret used for receiving, sending, challenge via HKDF-SHA2
// generate the secret used for receiving, sending, challenge via HKDF-SHA2
// on the transcript state (which itself also uses HKDF-SHA2 to derive a key from the dhSecret)
recvSecret, sendSecret, challenge := deriveSecretAndChallenge(hdkf_state, locIsLeast)