pub(crate) trait RelayLayer<F, B>where
F: OutboundRelayLayer,
B: InboundRelayLayer,{
// Required method
fn split_relay_layer(self) -> (F, B, CircuitBinding);
}
Expand description
A paired object containing the inbound and outbound cryptographic layers used by a relay to implement a client’s circuits.
Required Methods§
Sourcefn split_relay_layer(self) -> (F, B, CircuitBinding)
fn split_relay_layer(self) -> (F, B, CircuitBinding)
Consume this ClientLayer and return a paired forward and reverse
crypto layers, and a CircuitBinding
object
Implementors§
impl<EtBC, PrfBC> RelayLayer<RelayOutbound<EtBC, PrfBC>, RelayInbound<EtBC, PrfBC>> for tor_proto::crypto::cell::cgo::CryptStatePair<EtBC, PrfBC>where
EtBC: BlkCipherEnc,
PrfBC: BlkCipherEnc,
Available on crate feature
counter-galois-onion
only.