Skip to content

Commit

Permalink
Add padding the payload to the aggregate explainer (#1031)
Browse files Browse the repository at this point in the history
See #352 and the corresponding spec change #1030.
  • Loading branch information
alexmturner authored Sep 26, 2023
1 parent b0631c0 commit 842661c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions AGGREGATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,12 @@ encoded. The map will have the following structure:
}, ...]
}
```
Optionally, the browser may encode multiple contributions in the same payload;
this is only possible if all other fields in the report/payload are identical
for the contributions.
The browser may encode multiple contributions in the same payload; this is only
possible if all other fields in the report/payload are identical for the
contributions. To avoid revealing the number of contributions in the payload
through its encrypted size, the browser should pad the list of payloads with
'null' (zero value) contributions up to the maximum. In the future, a more
direct padding scheme could be considered.

This encryption should use [AEAD](https://en.wikipedia.org/wiki/Authenticated_encryption)
to ensure that the information in `shared_info` is not tampered with, since the
Expand Down

0 comments on commit 842661c

Please sign in to comment.