fast, safe and correct sphinx cryptographic packet replay tag writeback cache

This crate provides a fast replay cache for detecting Sphinx packet replays and is intended to be used with my Sphinx cryptography crate which you can find here:

NOTE: If you are unfamiliar with the Sphinx cryptographic packet format then you can read the Sphinx paper, Sphinx: A Compact and Provably Secure Mix Format by George Danezis and Ian Goldberg. See https://cypherpunks.ca/~iang/pubs/Sphinx_Oakland09.pdf

Usage

To import sphinx_replay_cache, add the following to the dependencies section of your project's Cargo.toml: toml sphinx_replay_cache = "^0.0.1" Then import the crate as: rust,no_run extern crate sphinx_replay_cache;

acknowledgments

This crate was inspired by the work of Yawning Angel who wrote the Sphinx packet replay cache for the Katzenpost mix server:

https://github.com/katzenpost/server

license

GNU AFFERO GENERAL PUBLIC LICENSE