Repository navigation
Add opt-in Ribbon OKVS and validate malicious OPRF seeds - #18
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ribbon is available as an opt-in OKVS backend for OPRF and PSI. It reduces the table from 1,411,712 Baxos cells to 1,310,720 cells at n=2^20 and ssp=40, while preserving Baxos as the default. The PR also improves Baxos GF128 dense decoding and keeps the ChosenBAA30 VOLE encoder.
For malicious OPRF, the receiver supplies the OKVS seed. With the previous AES label function H(x) = AES_k(x) xor x, a Baxos seed s=k makes the first dense coefficient equal H(x) for every key. The sender now rejects that seed before VOLE starts. Ribbon rejects seeds whose PRNG-derived row AES keys include k, as well as s=k. The honest receiver resamples a forbidden seed. The final salt opens only after the full correction table arrives. Labels remain 128 bits, and successful-session communication is unchanged apart from Ribbon's smaller table.
The regression constructs the offending Baxos table and runs the malicious OPRF with real VOLE. Removing the seed check yields 2,003 matching outputs after declaring 257 inputs; enabling it causes rejection before VOLE. The separate salt-order test catches an early opening. The included proof note gives a conservative ideal-cipher effective-set bound and states its limits: it does not claim concrete-AES security, exact-n extraction, or a complete protocol reduction.
Validation: 66/66 native tests and targeted OPRF/Ribbon integration tests pass on Peach. Sequential malicious PSI benchmarks at n=2^20 (both parties pinned to one CPU; median of seven post-warmup trials) measure 490.6 ms Baxos and 455.3 ms Ribbon, with receiver traffic 22,877,901 vs 21,262,038 bytes. Earlier targeted ASan+UBSan checks pass using the lifetime fixes now merged upstream in macoro #5, coproto #2, and libOTe #200; those dependency fixes are not part of this PR.