105 releases

0.10.21 Jun 20, 2024
0.10.20 Jan 12, 2024
0.10.19 Dec 12, 2023
0.10.18 Nov 21, 2023
0.5.12 Dec 30, 2022

#970 in Cryptography

40 downloads per month
Used in 6 crates (4 directly)

MPL-2.0 license

82KB
2K SLoC

Sosistab2 - an obfuscated datagram transport for horrible networks

Sosistab2 is a vaguely QUIC-like datagram transport framework. Over a single Multiplex session, it multiplexes streams that support both reliable TCP-like bytestreams and UDP-like unreliable datagrams.

The cool feature, and key innovation over the legacy sosistab protocol, is that the same Multiplex can be backed by multiple "pipes". Pipes implement the Pipe trait and are a simple abstraction over an unreliable datagram transport. A Multiplex will intelligently decide what pipe to send its traffic down, and automatically avoids non-functional pipes. The Multiplex also maintains end-to-end encryption using chacha20-poly1305 with a triple-x25519 key exchange, and does not trust the Pipes for confidentiality, integrity, or authentication in any way.

Dependencies

~21–60MB
~1M SLoC