Repository navigation
Replies: 1 comment
No. The construction of Is there a specific reason why you would prefer If you're worried about something like SagerNet/sing-box#4486, this is an implementation problem that has a straightforward fix, not a spec issue. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Use case
We operate a managed Shadowsocks service where multiple members share one address and port. With the Shadowsocks 2022 AES methods, the client uses a server PSK and a member PSK, and the server authenticates the member using their assigned credential. Would the specification consider defining interoperable multi-user behavior for
2022-blake3-chacha20-poly1305, covering TCP and UDP?Verified implementation behavior
854fa8eed597and65740e0f0e3e(the latter pinned by sing-box 1.14.6)NewMultiServicereturnsinvalid argumentfor ChaCha20. The client constructor accepts one 32-byte PSK and rejects two.invalid argument.The ChaCha20 multi-user check stopped at initialization, before a listener or traffic session was established. SagerNet multi-user constructor · sing-box dependency · Mihomo dependency
Reproduction with synthetic keys
NewMultiServicewith2022-blake3-chacha20-poly1305and the server PSK. Record the initialization result.2022-blake3-aes-256-gcmas the control.Proposed interoperability outcome
If this is within scope, could the specification define how a ChaCha20 client identifies and authenticates a member on a shared listener, how the server PSK and member PSK are used for TCP and UDP, and how implementations select the mode alongside existing single-PSK deployments?
A future conformance test would use two distinct member PSKs on one listener. Each member would pass TCP and UDP round trips with its own credential, and a client with an unassigned member PSK would fail authentication. Shared test vectors would let independently maintained clients and servers verify the same behavior.
All reactions