Skip to content

Keep McRosRoy curve scratch outside coroutine frames - #200

Merged
ladnir merged 1 commit into
masterfrom
codex/mrr-coroutine-alignment
Nov 17, 2026
Merged

ladnir merged 1 commit into
masterfrom
codex/mrr-coroutine-alignment

Conversation

@ladnir

@ladnir ladnir commented Nov 17, 2026

Copy link
Copy Markdown
Member

McRosRoy's Ristretto point temporaries and SIMD batch scratch lived in coroutine frames. On AVX-512, the sender's generator-point temporary was only 32-byte aligned when generated code performed a 64-byte aligned load, causing an alignment fault. Move receiver preparation/derivation and sender generator encoding/derivation into non-inlined ordinary helpers. Coroutine frames retain owned scalar and byte vectors; the existing fixed-lane arithmetic, PRNG order and wire encoding are unchanged.

Validation: this exact header (SHA-256 51c3efcf00278cffeed06c2aafc5f57b93644295b2d0c89e9470faa25bdc7c1a) passed targeted volePSI ASan+UBSan protocol tests on Peach, plus both McRosRoy POPF variants across 13 sizes, mismatched spans and malformed point messages. That isolated sanitizer run also applied the separate macoro/coproto lifetime fixes; no sanitizer check was disabled. This PR is based on current libOTe master, after the BAA merge.

@ladnir
ladnir merged commit 97739a8 into master Nov 17, 2026
5 checks passed
@ladnir
ladnir deleted the codex/mrr-coroutine-alignment branch November 17, 2026 14:16
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