Trait InboundRelayLayer

Source
pub(crate) trait InboundRelayLayer {
    // Required methods
    fn originate(&mut self, cmd: ChanCmd, cell: &mut RelayCellBody) -> SendmeTag;
    fn encrypt_inbound(&mut self, cmd: ChanCmd, cell: &mut RelayCellBody);
}
Expand description

Represents a relay’s view of the inbound crypto state on a given circuit.

Required Methods§

Source

fn originate(&mut self, cmd: ChanCmd, cell: &mut RelayCellBody) -> SendmeTag

Prepare a RelayCellBody to be sent towards the client, and encrypt it.

Return the authentication tag.

Source

fn encrypt_inbound(&mut self, cmd: ChanCmd, cell: &mut RelayCellBody)

Encrypt a RelayCellBody that is moving towards the client.

Implementors§

Source§

impl<EtBC, PrfBC> InboundRelayLayer for tor_proto::crypto::cell::cgo::RelayInbound<EtBC, PrfBC>
where EtBC: BlkCipherEnc, PrfBC: BlkCipherEnc,

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

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