Repository navigation
Speed up regular PPRF, SoftSpoken OT and two-bit VOLE for SecureJoin - #208
Merged
Merged
Conversation
…cure-join-spin-storage
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.
This updates the correlation generators used by SecureJoin. Callers can share a prepared regular SPIN encoder and keep a separate bank and scratch space for each stationary worker. The dependency pin selects the tested transpose kernels in SPIN #1.
The kernel changes batch regular PPRF levels and leaf hashes, fuse two-bit VOLE hashing with reduction and receiver correction, and write semi-honest SoftSpoken sender hashes directly into the output. The public small-field sender seed setter initializes the padding read by its final packed batch.
On Peach, the AVX2+VAES two-bit sender at 256 VOLEs went from 5.19 µs to 0.70 µs. Across 48 paired downstream regular joins the sender change saved 4.5 ms, followed by another 35 ms for the receiver change. Each comparison used 16,384 rows per party, four workers and real OTs.
All 186 enabled libOTe tests passed on each of five Peach builds. The final native and AVX2 PPRF sender and receiver outputs and wire bytes matched the reference across 1,120 cases per comparison. Instrumented AVX2 generation passed 516 sender and 1,032 receiver comparisons against scalar AES under AddressSanitizer and UBSan. The downstream integration is in SecureJoin #5.