mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 03:56:36 +00:00
handshake test to crypto
This commit is contained in:
parent
3b6385b146
commit
076c382a74
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ func TestCryptoHandshake(t *testing.T) {
|
||||||
respNonce, randomPubKey, _, _ := initiator.verifyAuthResp(response)
|
respNonce, randomPubKey, _, _ := initiator.verifyAuthResp(response)
|
||||||
|
|
||||||
fmt.Printf("%x\n%x\n%x\n%x\n%x\n%x\n%x\n%x\n", auth, initNonce, response, remoteRespNonce, remoteInitNonce, remoteRandomPubKey, respNonce, randomPubKey)
|
fmt.Printf("%x\n%x\n%x\n%x\n%x\n%x\n%x\n%x\n", auth, initNonce, response, remoteRespNonce, remoteInitNonce, remoteRandomPubKey, respNonce, randomPubKey)
|
||||||
// initSessionToken, initSecretRW, _ := initiator.newSession(initNonce, respNonce, auth, randomPubKey)
|
initSessionToken, initSecretRW, _ := initiator.newSession(initNonce, respNonce, auth, randomPubKey)
|
||||||
// respSessionToken, respSecretRW, _ := responder.newSession(remoteInitNonce, remoteRespNonce, auth, remoteRandomPubKey)
|
// respSessionToken, respSecretRW, _ := responder.newSession(remoteInitNonce, remoteRespNonce, auth, remoteRandomPubKey)
|
||||||
|
|
||||||
// if !bytes.Equal(initSessionToken, respSessionToken) {
|
// if !bytes.Equal(initSessionToken, respSessionToken) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue