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§
Sourcefn decrypt_outbound(
&mut self,
cmd: ChanCmd,
cell: &mut RelayCellBody,
) -> Option<SendmeTag>
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§
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.