Trait ClientLayer

Source
pub trait ClientLayer<F, B>{
    // Required method
    fn split_client_layer(self) -> (F, B, CircuitBinding);
}
Available on crate feature bench only.
Expand description

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.

TODO: Maybe we should fold this into CryptInit.

Required Methods§

Source

fn split_client_layer(self) -> (F, B, CircuitBinding)

Consume this ClientLayer and return a paired forward and reverse crypto layer, and a CircuitBinding object

Implementors§

Source§

impl<EtBC, PrfBC> ClientLayer<ClientOutbound<EtBC, PrfBC>, ClientInbound<EtBC, PrfBC>> for tor_proto::bench_utils::cgo::CryptStatePair<EtBC, PrfBC>
where EtBC: BlkCipherDec, PrfBC: BlkCipherEnc,

Available on crate feature counter-galois-onion only.
Source§

impl<SC, D> ClientLayer<ClientOutbound<SC, D>, ClientInbound<SC, D>> for tor_proto::bench_utils::tor1::CryptStatePair<SC, D>
where SC: StreamCipher, D: Digest + Clone,