Skip to content

v1.0.0-alpha.2

Pre-release
Pre-release

Choose a tag to compare

@wangxiao1254 wangxiao1254 released this 11 Nov 13:31
· 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 (default ferret_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_b13 now denote twice the table they did in
    v1.0.0-alpha.1; ferret_b9 is 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. The v1.0.0-alpha.1 sets ferret_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.baseline is
    regenerated. The Ferret bootstrap and the sVOLE pre-stage nest through ferret_b9,
    and the bootstrap SoftSpoken chunk follows ferret_b9.M. The README gains an LPN
    security
    section; the assumption, the sets and how they were chosen are in
    docs/lpn-security.md, and tools/lpn_security.py reproduces 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 with kLpnCoefficients). 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's vector_inn_prdt_sum_red_x4,
    and the Δ-holder folds its mac half only. F2kVOLE outputs and transcripts change:
    both parties must upgrade together, and the F2kVOLE rows of
    test/trace_hash.baseline are regenerated. Ferret, SilentFerret and FpVOLE
    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
    with vector_inn_prdt_sum_red_x4.
  • F2kVOLE / FpVOLE: the mask of the round-final malicious check, carry slot t, is
    no longer also coordinate 0 of the round's LPN secret. The LPN now reads slots
    t + 1 to t + k, which were already carried, so the check value x*, 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_hash gains F2kVOLE(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.
    Ferret is 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), and RO("emp-ot:fpvole:pre-lpn-seed", sid) for FpVOLE'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 different k (their indices agreed mod the
    smaller k). Callers that never call set_sid still share one matrix per protocol;
    distinct sids give distinct matrices. Both protocols' outputs change; the sVOLE rows
    of test/trace_hash.baseline are regenerated.
  • BMM base OT: every OT index i derives its own CRS matrix A_i from
    (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; the BMM row of test/trace_hash.baseline is regenerated.

Added

  • Counted OT streams: begin(n_ots) records an upper bound on the session's
    coming next_n() draws, so a backend can shrink its last production unit, and
    check() certifies every chunk generated since begin() or the previous
    check() while keeping the session open. IKNP, SoftSpoken and Ferret track the
    per-chunk checks; SilentFerret certifies in begin(), so its check() does
    nothing. The first check() also runs CSW's deferred base-OT extraction check.
  • SilentFerret range 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, as IKNP and SoftSpoken do:
    Ferret(party, io, malicious, base_ot, param), where v1.0.0-alpha.1 had
    param before base_ot. A caller that passed a parameter set positionally
    must pass the base OT (or nullptr) first. SilentFerret keeps its order.
  • The wire-format gate trace_hash_baseline runs 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.
  • ./run uses EMP_PORT when set and 12345 otherwise, and ctest gives each
    two-party test its own ports from 21000 up.