-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update function signatures of UDP InputProcessor
Summary: Updates the signatures of `CompactionBasedInputProcessor` functions to slightly change the workflow of `getPlaintextData` logic, as well as adding the data structs that will be used for serialization / deserialization logic in `compactData` Rather than relying on the `getUnionMap` to shuffle the data in place, it will instead assume that the method for generation of `unionMap` is randomly secure. The high level algorithm is as follows: 1. Generate a random permutation of PID elements (i.e. `[1,3,4,0,2]` indicates the order of PID's in shuffled data) 2. Create the union map where -1 indicates dummy row, and `value > 0` indicates the index of that row in plaintext data after applying permutation to PID's (i.e. if PID `1` and `3` are dummy rows the map is `[1, -1, 2,-1,0]`). Not that the `maximumVal+1` (3) indicates the number of partner input rows. Each value appears once in the `unionMap` 3. In the prepare plaintext data step, it will generate a reverse unionMap without dummy rows. The plaintext data will be serialized by iterating through the reverse map in order and taking the input data at that location (i.e. `[4, 0, 2]`). {F785701567} Reviewed By: chennyc Differential Revision: D40687410 fbshipit-source-id: 82f622ce1cbe94eb5ec091196a19b471c10834d6
- Loading branch information
1 parent
afe31a1
commit 35a2529
Showing
2 changed files
with
79 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters