Docs: a zero byte where a stats-bundle record key is expected ends the page (cipher padding)
tth-docs / site (push) Successful in 19s
pub-release / release (push) Successful in 18m17s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-12-04 04:14:01 +01:00
1 parent a2a2b67ee3
commit e86d74338d
1 file changed
+6
+6
View File
@@ -62,6 +62,12 @@ length), so ids can be added without a version bump. The version byte changes
only when an existing id changes meaning. Only **non-zero** counters are sent;
an absent counter is 0. Always sent for an admin: ids 32, 33, 34 (see below).
**A zero byte where a record key is expected ends the page.** Id 0 is never
used; the reply arrives padded with zeros to the cipher block (AES, 16 B --
the companion hands the padding over too: 139 B of bundle came as 140 B, a
page 1 of 30 B as 44 B). A reader that takes `0x00` as a record with id 0
reads past the data and fails the page.
### Ids
| id | name | value |