pub(crate) trait InboundClientLayer {
// Required method
fn decrypt_inbound(
&mut self,
cmd: ChanCmd,
cell: &mut RelayCellBody,
) -> Option<SendmeTag>;
}
Expand description
A client’s view of the crypto state shared with a single relay on a circuit, as used for inbound cells.
Required Methods§
Sourcefn decrypt_inbound(
&mut self,
cmd: ChanCmd,
cell: &mut RelayCellBody,
) -> Option<SendmeTag>
fn decrypt_inbound( &mut self, cmd: ChanCmd, cell: &mut RelayCellBody, ) -> Option<SendmeTag>
Decrypt a CellBody that passed through this layer.
Return an authentication tag if this layer is the originator.
Implementors§
impl<EtBC, PrfBC> InboundClientLayer for tor_proto::crypto::cell::cgo::ClientInbound<EtBC, PrfBC>where
EtBC: BlkCipherDec,
PrfBC: BlkCipherEnc,
Available on crate feature
counter-galois-onion
only.impl<L: OutboundRelayLayer> InboundClientLayer for ResponderInboundLayer<L>
Available on crate feature
hs-common
only.