Trait OutboundRelayLayer

Source
pub(crate) trait OutboundRelayLayer {
    // Required method
    fn decrypt_outbound(
        &mut self,
        cmd: ChanCmd,
        cell: &mut RelayCellBody,
    ) -> Option<SendmeTag>;
}
Expand description

Represent a relay’s view of the outbound crypto state on a given circuit.

Required Methods§

Source

fn decrypt_outbound( &mut self, cmd: ChanCmd, cell: &mut RelayCellBody, ) -> Option<SendmeTag>

Decrypt a RelayCellBody that is moving towards the client.

Return an authentication tag if it is addressed to us.

Implementors§

Source§

impl<EtBC, PrfBC> OutboundRelayLayer for tor_proto::crypto::cell::cgo::RelayOutbound<EtBC, PrfBC>
where EtBC: BlkCipherEnc, PrfBC: BlkCipherEnc,

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

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