Trait RelayLayer

Source
pub(crate) trait RelayLayer<F, B>{
    // 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§

Source

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§

Source§

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.
Source§

impl<SC: StreamCipher, D: Digest + Clone> RelayLayer<RelayOutbound<SC, D>, RelayInbound<SC, D>> for tor_proto::crypto::cell::tor1::CryptStatePair<SC, D>