Skip to content

Add opt-in Ribbon OKVS and validate malicious OPRF seeds - #18

Merged
ladnir merged 2 commits into
mainfrom
codex/ribbon-okvs-bench
Nov 17, 2026
Merged

ladnir merged 2 commits into
mainfrom
codex/ribbon-okvs-bench

Conversation

@ladnir

@ladnir ladnir commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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.

@ladnir
ladnir merged commit e493ec0 into main Nov 17, 2026
3 checks passed
@ladnir
ladnir deleted the codex/ribbon-okvs-bench branch November 17, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant