2026-10-11 13:38:40 +01:00
|
|
|
# Amnezia packet engine
|
|
|
|
|
|
2026-10-22 01:07:52 +01:00
|
|
|
`../tsunagi-wireguard/src/masking.rs` is adapted from `src/core/amnezia.rs` in
|
2026-10-11 13:38:40 +01:00
|
|
|
https://github.com/RunaRoo/AmneziaWG-RS at
|
|
|
|
|
`51579a7d6e8882d1d8d6d00822f09e18a9423b73`, under Apache-2.0.
|
2026-10-22 01:07:52 +01:00
|
|
|
The upstream license is retained in both packages as `LICENSE-AmneziaWG-RS`.
|
2026-10-11 13:38:40 +01:00
|
|
|
|
|
|
|
|
The adaptation replaces configuration-file loading with bounded typed pair
|
|
|
|
|
profiles, updates RNG calls to rand 0.10, removes an unnecessary unwrap, and
|
|
|
|
|
does not embed upstream's Node, global executors, OS interface operations or
|
|
|
|
|
detached tasks. Noise/WireGuard is supplied by boringtun, already used by
|
|
|
|
|
Tsunagi. Each pair owns one socket and one cancellable packet-engine task.
|
|
|
|
|
|
2026-10-22 01:07:52 +01:00
|
|
|
This is Tsunagi AWG wire version 2, not a claim of compatibility with external
|
2026-10-11 13:38:40 +01:00
|
|
|
Amnezia servers. The masking engine substitutes message headers outside the
|
|
|
|
|
standard WireGuard state machine and restores them before Noise validation.
|
|
|
|
|
There are no remote file paths, shell hooks, or persisted pair profiles.
|
|
|
|
|
|
|
|
|
|
The adapted masking source remains Apache-2.0. Newly written Tsunagi code
|
|
|
|
|
follows the repository's WTFPL. This package declares both licenses in Cargo
|
|
|
|
|
metadata; the workspace license alone does not describe its copied source.
|