Trait InboundClientLayer

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

Source

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§

Source§

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

impl<L: OutboundRelayLayer> InboundClientLayer for ResponderInboundLayer<L>

Available on crate feature hs-common only.
Source§

impl<SC: StreamCipher, D: Digest + Clone> InboundClientLayer for tor_proto::crypto::cell::tor1::ClientInbound<SC, D>