forked from facebookresearch/fbpcf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement oblivious index operation (facebookresearch#284)
Summary: Pull Request resolved: facebookresearch#284 This is needed for the concat function in AsciiString when accessing a character in the AsciiString while the index is secret. Overloaded the [ ] operator so the index could be a secret Int object. Iterate through the AsciiString and assign the return value to be the current character if we are at the secret index. Return a signed secret Int object. Differential Revision: https://www.internalfb.com/diff/D37892641?entry_point=27 fbshipit-source-id: 0b81990773e5635c2d6c33a945c96410ae863f5a
- Loading branch information
1 parent
4fdd81e
commit 8f0e184
Showing
2 changed files
with
37 additions
and
0 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