Commit a769c2a
docs(xmss): document the 4-byte epoch packing precondition in the PRF (#1118)
The PRF packs the epoch into four big-endian bytes in both chain-start
and randomness derivation. This is sound only because the epoch is
bounded by the key lifetime, and every supported config keeps
LOG_LIFETIME <= 32, so the value always fits in four bytes.
Record that precondition next to each packing site so a future config
exceeding the bound is understood as the cause of the resulting
overflow at signing time, rather than appearing as an unexplained
failure. The wire layout is unchanged.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e203930 commit a769c2a
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
131 | 139 | | |
132 | 140 | | |
133 | 141 | | |
| |||
0 commit comments