Opened 5 years ago

Closed 5 years ago

#13054 closed defect (duplicate)

[warn] Invalid result from curve25519 handshake: 4

Reported by: arma Owned by:
Priority: Medium Milestone: Tor: 0.2.6.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-relay
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I get this on the moriatoo relay, which is running git master and is also hooked up to a bwauth.

The messages around it are:

Sep 04 03:21:11.000 [warn] Invalid result from curve25519 handshake: 4
Sep 04 03:21:11.000 [warn] onion_skin_client_handshake failed.
Sep 04 03:21:11.000 [warn] circuit_finish_handshake failed.

It actually happens not infrequently, so it's not just a one-off thing.

The code is

  if (bad) {
    log_warn(LD_PROTOCOL, "Invalid result from curve25519 handshake: %d", bad);
  }

and I think 4 shows up when

  bad |= (tor_memneq(s.auth, auth_candidate, DIGEST256_LEN) << 2);

So I guess the first issue is that "4" is really not a helpful error message for me.

The second issue is to wonder what's gone wrong and whether there's a deeper bug.

Child Tickets

Change History (2)

comment:1 Changed 5 years ago by asn

comment:16:ticket:9635 is related. Possibly even making this a duplicate.

comment:2 Changed 5 years ago by nickm

Resolution: duplicate
Status: newclosed

Indeed; closing as duplicate.

Note: See TracTickets for help on using tickets.