diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-17 10:14:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-17 10:16:41 -0400 |
commit | 320dcf65b7c8e382b27260a037bd1e93e563ccb9 (patch) | |
tree | a42f76d15d4cbee6bf685e4aad199cc8f08b49de /src/test/bench.c | |
parent | 298932605495dc9ef3e8e068c36a80a517036195 (diff) | |
download | tor-320dcf65b7c8e382b27260a037bd1e93e563ccb9.tar.gz tor-320dcf65b7c8e382b27260a037bd1e93e563ccb9.zip |
Extract the crypto parts of circuit_package_relay_cell.
Diffstat (limited to 'src/test/bench.c')
-rw-r--r-- | src/test/bench.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/bench.c b/src/test/bench.c index 24ff8b255c..ad37325681 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -518,7 +518,8 @@ bench_cell_ops(void) for (i = 0; i < iters; ++i) { char recognized = 0; crypt_path_t *layer_hint = NULL; - relay_crypt(TO_CIRCUIT(or_circ), cell, d, &layer_hint, &recognized); + relay_decrypt_cell(TO_CIRCUIT(or_circ), cell, d, + &layer_hint, &recognized); } end = perftime(); printf("%sbound cells: %.2f ns per cell. (%.2f ns per byte of payload)\n", |