Expand description
Features for manual invocation of Torβs cryptographic circuit handshakes.
These features are used to implement onion services, by giving the onion service code more direct control over the lower-level pieces of the protocol.
Re-exportsΒ§
use tor_cell::relaycell::RelayCellFormat;πuse tor_error::internal;πuse crate::crypto::binding::CircuitBinding;πuse crate::crypto::cell::CgoRelayCrypto;πuse crate::crypto::cell::Tor1Hsv3RelayCrypto;πuse crate::crypto::cell::ClientLayer;πuse crate::crypto::cell::CryptInit;πuse crate::crypto::cell::InboundClientLayer;πuse crate::crypto::cell::InboundRelayLayer;πuse crate::crypto::cell::OutboundClientLayer;πuse crate::crypto::cell::OutboundRelayLayer;πuse crate::crypto::cell::RelayLayer;πuse crate::crypto::cell::Tor1RelayCrypto;πuse crate::Result;πpub use crate::crypto::handshake::KeyGenerator;pub use crate::crypto::handshake::hs_ntor;
StructsΒ§
- Boxed
Client πLayer - A set of type-erased cryptographic layers to use for a single hop at a client.
- Responder
Inbound πLayer - Wrapper to make a relay layer behave as a client layer.
- Responder
Outbound πLayer - Wrapper to make a relay layer behave as a client layer.
EnumsΒ§
- Handshake
Role - What role we are playing in a handshake.
- Relay
Crypt πLayer Protocol - Internal counterpart of RelayProtocol; includes variants that canβt be
negotiated from
extend_virtual. - Relay
Protocol - The relay protocol to use when extending a circuit manually with
Circuit::extend_virtual.
FunctionsΒ§
- construct π
- Helper: Construct a BoxedClientLayer for a layer type L whose inbound and outbound cryptographic states are the same type.