Repository navigation
v1.0.0-alpha.2
Pre-release
Pre-release
·
34 commits
to main
since this release
Second alpha of the 1.0 development line, pairing with emp-tool
v1.0.0-alpha.2, which it requires (F2kVOLE uses its
vector_inn_prdt_sum_red_x4). The Ferret, sVOLE and BMM transcripts change, so
both parties must upgrade together.
Security
- Ferret LPN parameter sets
ferret_b9–ferret_b13(defaultferret_b12),
selected so that every counted attack costs at least 2¹⁴¹, a 10% margin, for the
binary instance and for the large-field instance: the lpnestimator.com routines,
the XFL and WXL algorithms of Furue–Aikawa (eprint 2026/2470), and WXL over the
sparse rows of the 10-local matrix, and elimination on the samples inside a greedily
peeled coordinate subset (docs/lpn-security.md§3). Tables of 1–16 MiB
(ferret_b10–ferret_b13now denote twice the table they did in
v1.0.0-alpha.1;ferret_b9is new), one tree level shallower at every table size
(logk − tree_depth = 7), about 1.8× the correction traffic per COT at the same
table. Thev1.0.0-alpha.1setsferret_b10–ferret_b13(128.1–128.6 bits under
the estimator, 111.3–120.6 under sparse WXL) are removed. The sets shape the
transcript: both parties must run the same release;test/trace_hash.baselineis
regenerated. The Ferret bootstrap and the sVOLE pre-stage nest throughferret_b9,
and the bootstrap SoftSpoken chunk followsferret_b9.M. The README gains an LPN
security section; the assumption, the sets and how they were chosen are in
docs/lpn-security.md, andtools/lpn_security.pyreproduces the Furue–Aikawa,
sparse-WXL and restricted-ISD costs for any(N, k, t). F2kVOLE: every entry of the LPN matrix is a pseudorandom GF(2¹²⁸) element
instead of 0/1, applied to the val and mac halves alike (common/lpn.h; a carrier
opts in withkLpnCoefficients). The coefficients come from the same public PRG
stream as the indices, so both parties derive them locally and nothing extra is
sent. Rows are folded four at a time with emp-tool'svector_inn_prdt_sum_red_x4,
and the Δ-holder folds its mac half only.F2kVOLEoutputs and transcripts change:
both parties must upgrade together, and theF2kVOLErows of
test/trace_hash.baselineare regenerated.Ferret,SilentFerretandFpVOLE
keep their unit-entry matrices. With the coefficients,F2kVOLE's LPN stage is a
large-field instance, and the large-field figures above cover it. Needs an emp-tool
withvector_inn_prdt_sum_red_x4.F2kVOLE/FpVOLE: the mask of the round-final malicious check, carry slott, is
no longer also coordinate 0 of the round's LPN secret. The LPN now reads slots
t + 1tot + k, which were already carried, so the check valuex*, sent in the
clear, is one-time padded; before, it gave the Δ-holder one linear equation tying
that coordinate to the round's noise. Both protocols' outputs change in both modes,
so both parties must upgrade together.test/trace_hashgainsF2kVOLE(b9)and
FpVOLE(b9)rows that run two whole rounds, because an sVOLE round's LPN output
reaches the wire only through the next round; the baseline is regenerated.
Ferretis unaffected.F2kVOLE/FpVOLE: the public LPN matrix is seeded from the session id, as
Ferret's is:RO("emp-ot:f2kvole:lpn-seed", sid)/RO("emp-ot:fpvole:lpn-seed", sid), andRO("emp-ot:fpvole:pre-lpn-seed", sid)forFpVOLE's pre-stage, derived
locally by both parties at bootstrap. Before, every instance used the seed
zero_block, so all sessions shared one matrix, and an instance's main and nested or
pre-stage matrices read one PRG stream at differentk(their indices agreed mod the
smallerk). Callers that never callset_sidstill share one matrix per protocol;
distinct sids give distinct matrices. Both protocols' outputs change; the sVOLE rows
oftest/trace_hash.baselineare regenerated.BMMbase OT: every OT indexiderives its own CRS matrixA_ifrom
(sid, i), where one matrix served every index, and the 128-bit OT string is
carried directly in the first half of the PKE's 256-bit message instead of
under a hash pad, so the sender sends 1,536 bytes per OT instead of 1,568. The
transcript changes; theBMMrow oftest/trace_hash.baselineis regenerated.
Added
- Counted OT streams:
begin(n_ots)records an upper bound on the session's
comingnext_n()draws, so a backend can shrink its last production unit, and
check()certifies every chunk generated sincebegin()or the previous
check()while keeping the session open. IKNP, SoftSpoken and Ferret track the
per-chunk checks;SilentFerretcertifies inbegin(), so itscheck()does
nothing. The firstcheck()also runs CSW's deferred base-OT extraction check. SilentFerretrange reducers: an LPN sink path that computes the current
round's COT XORs with one tree of scratch, and a fused path that skips storing
the finalized outputs.Ferret::set_lpn_matrix_seed(seed), called before bootstrap, seeds the LPN
matrix independently of the transcript's session id. By default the seed is
still derived from the session id.
Changed
Ferret's constructor takes the injectable base OT before the optional LPN
parameter, asIKNPandSoftSpokendo:
Ferret(party, io, malicious, base_ot, param), wherev1.0.0-alpha.1had
parambeforebase_ot. A caller that passed a parameter set positionally
must pass the base OT (ornullptr) first.SilentFerretkeeps its order.- The wire-format gate
trace_hash_baselineruns only in a Release tree
configured against an emp-tool built with-DEMP_TEST_MODE=ON, since emp-tool's
deterministic test mode is now a build option; CI gains a test-mode job that
runs it. ./runusesEMP_PORTwhen set and 12345 otherwise, andctestgives each
two-party test its own ports from 21000 up.