Skip to content

Commit

Permalink
Add padding the payload to the aggregate explainer
Browse files Browse the repository at this point in the history
See #352 and the spec change #1030.
  • Loading branch information
alexmturner committed Sep 19, 2023
1 parent ec0778c commit 0e31a94
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 @@ -289,9 +289,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 0e31a94

Please sign in to comment.