Available on crate feature
bench
only.Expand description
Collection of utilities for benchmarking the tor-proto
crate.
Modules§
- cgo
counter-galois-onion
- Benchmark utilities for the
cgo
module. - tor1
- Benchmark utilities for the
tor1
module.
Structs§
- Inbound
Client Crypt - 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.
- Outbound
Client Crypt - A client’s view of the cryptographic state for an entire constructed circuit, as used for sending cells.
- Relay
Cell Body - 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§
- Client
Layer - 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.
- Crypt
Init - Represents the ability for one hop of a circuit’s cryptographic state to be initialized from a given seed.
- Inbound
Client Layer - A client’s view of the crypto state shared with a single relay on a circuit, as used for inbound cells.
- Inbound
Relay Layer - Represents a relay’s view of the inbound crypto state on a given circuit.
- Outbound
Client Layer - A client’s view of the cryptographic state shared with a single relay on a circuit, as used for outbound cells.
- Outbound
Relay Layer - Represent a relay’s view of the outbound crypto state on a given circuit.
- Relay
Layer - 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.