From a3f5a246693cca2f6a51e418e6edf8fae2fe75b5 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 19 Sep 2017 09:07:42 -0400 Subject: hs: Pad RENDEZVOUS1 v3 cell to match length of v2 RENDEZVOUS1 cell is 84 bytes long in v3 and 168 bytes long in v2 so this commit pads with random bytes the v3 cells up to 168 bytes so they all look alike at the rendezvous point. Closes #23420 Signed-off-by: David Goulet --- src/or/rendservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/rendservice.c') diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 1e89ab6a7f..74646c78d1 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -3398,7 +3398,7 @@ rend_service_rendezvous_has_opened(origin_circuit_t *circuit) /* Send the cell */ if (relay_send_command_from_edge(0, TO_CIRCUIT(circuit), RELAY_COMMAND_RENDEZVOUS1, - buf, REND_COOKIE_LEN+DH_KEY_LEN+DIGEST_LEN, + buf, HS_LEGACY_RENDEZVOUS_CELL_SIZE, circuit->cpath->prev)<0) { log_warn(LD_GENERAL, "Couldn't send RENDEZVOUS1 cell."); goto done; -- cgit v1.2.3-54-g00ecf