diff options
author | Roger Dingledine <arma@torproject.org> | 2017-07-03 17:16:26 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2017-07-03 17:20:52 -0400 |
commit | 943d284752c7c0d7075e7d7a21d5384e8335e95b (patch) | |
tree | 38a01c6d5052952222dec64f363ad777f08f7bfa /src/or/circuitbuild.c | |
parent | 69fba1f2cd0dae3408d8ebe2aee4c4ec426278db (diff) | |
download | tor-943d284752c7c0d7075e7d7a21d5384e8335e95b.tar.gz tor-943d284752c7c0d7075e7d7a21d5384e8335e95b.zip |
CREATE_FAST is for when you don't know the onion key
it isn't (anymore) for when you think you can get away with saving some
crypto operations.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 5fd199ca1f..8bb7c94d74 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -981,15 +981,11 @@ circuit_send_first_onion_skin(origin_circuit_t *circ) node = node_get_by_id(circ->base_.n_chan->identity_digest); fast = should_use_create_fast_for_circuit(circ); if (!fast) { - /* We are an OR and we know the right onion key: we should - * send a create cell. - */ + /* We know the right onion key: we should send a create cell. */ circuit_pick_create_handshake(&cc.cell_type, &cc.handshake_type, circ->cpath->extend_info); } else { - /* We are not an OR, and we're building the first hop of a circuit to a - * new OR: we can be speedy and use CREATE_FAST to save an RSA operation - * and a DH operation. */ + /* We don't know an onion key, so we need to fall back to CREATE_FAST. */ cc.cell_type = CELL_CREATE_FAST; cc.handshake_type = ONION_HANDSHAKE_TYPE_FAST; } |