Module bench_utils

Source
Available on crate feature bench only.
Expand description

Collection of utilities for benchmarking the tor-proto crate.

Modules§

cgocounter-galois-onion
Benchmark utilities for the cgo module.
tor1
Benchmark utilities for the tor1 module.

Structs§

InboundClientCrypt
A client’s view of the cryptographic state for an entire constructed circuit, as used for receiving cells.
KGen
Generates keys based on SHAKE-256.
OutboundClientCrypt
A client’s view of the cryptographic state for an entire constructed circuit, as used for sending cells.
RelayCellBody
Type for the body of a relay cell.

Constants§

BENCH_CHAN_CMD
The channel command used as additional data for the cryptographic operations benchmarks.

Traits§

ClientLayer
A paired object containing the inbound and outbound cryptographic layers used by a client to communicate with a single hop on one of its circuits.
CryptInit
Represents the ability for one hop of a circuit’s cryptographic state to be initialized from a given seed.
InboundClientLayer
A client’s view of the crypto state shared with a single relay on a circuit, as used for inbound cells.
InboundRelayLayer
Represents a relay’s view of the inbound crypto state on a given circuit.
OutboundClientLayer
A client’s view of the cryptographic state shared with a single relay on a circuit, as used for outbound cells.
OutboundRelayLayer
Represent a relay’s view of the outbound crypto state on a given circuit.
RelayLayer
A paired object containing the inbound and outbound cryptographic layers used by a relay to implement a client’s circuits.

Functions§

circuit_encrypt_inbound
Encrypts the given RelayCellBody in the inbound direction by all the relays in a circuit.