Skip to main content

Module maybenot_padding

Module maybenot_padding 

Source
Expand description

A maybenot-specific backend for padding.

ModulesΒ§

backend πŸ”’
Padding backend based on maybenot.

StructsΒ§

BlockingState πŸ”’
Current padding-related blocking status for a circuit.
CircuitPadder
A opaque handle to a padding implementation for a single hop.
CircuitPadderConfig
Builder for PaddingRules.
PaddingController πŸ”’
A handle to the padding state of a single circuit.
PaddingEventStream πŸ”’
A stream of PaddingEvent to tell a circuit when (if at all) it should send padding and block traffic.
PaddingRules πŸ”’
Specifications for a set of maybenot padding machines as used in Arti: used to construct a maybenot::Framework.
PaddingShared πŸ”’
The shared state for a single circuit’s padding.
PaddingStats πŸ”’
The number of padding and non-padding cells we have received from each hop, and the rules for how many are allowed.
QueuedCellPaddingInfo πŸ”’
Information about a queued cell that we need to feed back into the padding subsystem.
SendPadding πŸ”’
An indication that we should send a padding cell.
StartBlocking πŸ”’
An instruction to start blocking traffic or to change the rules for blocking traffic.

EnumsΒ§

Bypass πŸ”’
Whether a piece of padding can bypass a bypassable case of blocking.
CircuitPadderConfigError
An error returned from validating a CircuitPadderConfig.
PaddingEvent πŸ”’
An instruction from the padding machine to the circuit.
PerHopPaddingEvent πŸ”’
An instruction from a single padding hop.
Replace πŸ”’
Whether a given piece of padding can be replaced with queued data.

ConstantsΒ§

MAX_HOPS πŸ”’
Absolute upper bound for number of hops.

FunctionsΒ§

hopnum_from_hop_idx πŸ”’
Construct a HopNum from an index into the hops field of a PaddingShared.
new_padding πŸ”’
Create a new, empty padding instance for a new circuit.

Type AliasesΒ§

Duration πŸ”’
The type of Duration that we’ll use for our padding machines.
Instant πŸ”’
The type of Instant that we’ll use for our padding machines.
PaddingEventQueue πŸ”’
A type we use to generate a set of PaddingEvent.
PerHopPaddingEventVec πŸ”’
A type we use to generate a set of PaddingEvent.