Docs: a zero byte where a stats-bundle record key is expected ends the page (cipher padding)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2a2b67ee3
commit
e86d74338d
1 file changed
+6
@@ -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;
|
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).
|
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
|
### Ids
|
||||||
|
|
||||||
| id | name | value |
|
| id | name | value |
|
||||||
|
|||||||
Reference in new issue
Block a user