[GH-ISSUE #206] 3.1: are the 2.0 numeric bounds still valid? (Jc / Jmin–Jmax / S1–S4) #204

Open
opened 2026-10-25 04:17:27 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Im-a-rabbit on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-go/issues/206

Context

We maintain a library that reads/writes AmneziaWG configs and validates settings
before exporting them. For 3.1 the docs list the types (uint16 / uint32)
but not the numeric bounds, while the older versions used much tighter bounds.
We would like to know the canonical 3.1 bounds.

The bounds we used before were:

Setting Bounds
Jc 0–10
Jmin, Jmax 64–1024
S1–S3 0–64
S4 0–32

Are these still valid in 3.1? If not, what bounds should be used for Jc,
Jmin/Jmax and S1–S4 — or are they now limited only by their types
(uint16 / uint32), plus the S1–S4 ≥ 12 lower bound when
HeaderProtectionKey is set?

Originally created by @Im-a-rabbit on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-go/issues/206 ## Context We maintain a library that reads/writes AmneziaWG configs and validates settings before exporting them. For 3.1 the docs list the *types* (`uint16` / `uint32`) but not the numeric bounds, while the older versions used much tighter bounds. We would like to know the canonical 3.1 bounds. The bounds we used before were: | Setting | Bounds | |---|---| | `Jc` | 0–10 | | `Jmin`, `Jmax` | 64–1024 | | `S1`–`S3` | 0–64 | | `S4` | 0–32 | Are these still valid in 3.1? If not, what bounds should be used for `Jc`, `Jmin`/`Jmax` and `S1`–`S4` — or are they now limited only by their types (`uint16` / `uint32`), plus the `S1`–`S4 ≥ 12` lower bound when `HeaderProtectionKey` is set?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-go#204
No description provided.