[][src]Crate sphinx_replay_cache

This module handles Sphinx packet replay detection and storing the mix key and it's associated metadata. To quoate "Sphinx Mix Network Cryptographic Packet Format Specification", section "6. Sphinx Packet Processing" states the following:

"After a packet has been unwrapped successfully, a replay detection tag is checked to ensure that the packet has not been seen before. If the packet is a replay, the packet MUST be discarded with no additional processing."

Note: 1Gbps ethernet line speed is 118 MB/s and 123 MB/s with jumbo frames therefore to be on the safe side we can set the line rate to: 128974848 = 123 * 1024 * 1024.

Modules

constants
errors

Structs

MixKey
MixKeys
Tag