Narrow AES and small BLAKE3 batches — round 5

Two fresh matched images pass all 91 populations. Both include the measured BLAKE3 cutoff: lengths 1..6 use the original single-query readers, and lengths 7 or greater use the independent-query SIMD path. The selected image enables aes-narrow for one/two/four-block AES methods; eight-block methods retain their prior implementation. All GC/PRG output contracts and the 68-case batch corpus remain unchanged.

Costs are actual IC instructions per operation/query at N=1000. Each body and separate empty harness has two fresh samples. Counter 0 body and authoritative whole checked update remain separate; page fees are included in whole cost. Values are rounded to 0.1; exact numerators and denominators remain in the cost summary. No harness subtraction or N=1 projection is used.

GC operation Control→narrow body Control→narrow whole Selected page fees
aes-block 5,347.3 → 1,280.3 6,745.8 → 2,678.7 480.0
gate-hash 5,922.3 → 1,886.3 7,319.3 → 3,283.2 480.0
and-garble 9,391.3 → 8,054.3 39,472.6 → 24,795.6 720.0
and-evaluate 6,951.1 → 3,616.1 8,349.8 → 5,014.8 560.0
eq8-garble-gate-only 67,154.3 → 65,817.3 109,106.9 → 100,423.8 2,720.0
eq8-evaluate-gate-only 36,389.2 → 29,043.1 42,922.4 → 35,576.3 2,960.0

Earlier frozen 1/2 checkpoint → chosen-width image, actual N1000:

GC operation Body Whole checked update
aes-block 1,280.3 → 1,280.3 2,678.7 → 2,678.7
gate-hash 1,886.3 → 1,886.3 3,283.2 → 3,283.2
and-garble 9,391.3 → 8,054.3 26,132.6 → 24,795.6
and-evaluate 3,616.1 → 3,616.1 5,014.8 → 5,014.8
eq8-garble-gate-only 67,154.3 → 65,817.3 105,771.8 → 100,423.8
eq8-evaluate-gate-only 33,054.1 → 29,043.1 39,587.3 → 35,576.3

This compares complete checkpoint artifacts and their layouts. Source scopes and independent audits remain separate.

These AES rows use the fixed public-zero key for the GC construction. They do not measure generic secret-key narrow API costs. The direct AES32 reference remains separately named with real-block denominators. Public-zero setup retains a zero-sized owner; its setup row does not represent general secret-key expansion. Garbler whole updates also evaluate/check outputs after timing: whole savings with unchanged garbling bodies come from that evaluator/checking work, not a faster pure Alice kernel.

Actual BLAKE3 short-secret populations, per real secret:

Actual N Path/image Body/secret Whole/secret Page fees/secret
1 round4 SIMD batch 8,497.0 340,989.0 320,000.0
1 round5 control batch 2,274.0 334,766.0 320,000.0
1 round5 selected batch 2,274.0 334,766.0 320,000.0
1 round5 selected stream 2,571.0 335,018.0 320,000.0
100 round4 SIMD batch 891.0 5,583.8 3,200.0
100 round5 control batch 891.1 5,583.9 3,200.0
100 round5 selected batch 891.1 5,583.9 3,200.0
100 round5 selected stream 2,262.1 6,954.7 3,200.0
1000 round4 SIMD batch 1,004.4 2,769.7 560.0
1000 round5 control batch 1,004.4 2,769.7 560.0
1000 round5 selected batch 1,004.4 2,769.7 560.0
1000 round5 selected stream 2,419.3 4,184.6 560.0

One batch API call writes N independent 32-byte secrets; the stream path constructs, fills and retires N stream owners. The cutoff was chosen from the preceding actual small-batch sweep, where N6 favored sequential readers and N7 favored four-query SIMD scheduling. The new N1/100/1000 figures above are fresh binary measurements; no new crossover is inferred for unmeasured populations. Session preparation precedes timing, batch scratch cleanup stays inside the body, and cold-output verification, checksums, replies and retained-owner cleanup remain in whole updates. Single-query readers can themselves use Wasm SIMD compression; the cutoff changes independent-query scheduling, not SIMD versus non-SIMD arithmetic.

The fresh pair isolates the narrow-feature choice within this round. Comparisons with round4 also include the changed cutoff and complete compiler/layout effects; they do not isolate each source edit. The previous archive and report remain unchanged.

Qualification scope:

  • The shared native reference preserves all 91 output populations and 68 batch cases. Each installed image passes 1,024 equality pairs, 64 BLAKE3 cases, 50 standalone PRG cases, 32 AES cases and 68 batch cases; native exhaustive equality covers 65,536 pairs. Each primary independent audit checks 737 traces and 50,726 per-output checksum items. Separate instrumented proof confirms 28/14 hashes per equality, with no primary cost rows.
  • Generic AES target checks retain eight-lane results and exercise borrowed/in-place narrow-width methods within the same 32-case endpoint schema: 1,792 checked block results across 256 distinct key/input lane pairs per image. These include repeated cross-API comparisons, not that many unique vectors. Hardware-lowering qualification remains scoped by the independent source/target review; these correctness probes are distinct from GC public-zero performance rows.
  • The optional byte-vector AES path uses secret-index register swizzles. Its constant-time claim depends on hardware register-swizzle lowering; source equivalence or native emulation does not establish a universal-host guarantee. Read the exact measured-host review before using that claim outside the qualified runtime.
  • Frozen GC suite c93cec6c2f3fd4e73d9928f5a2634786706b6691feddc055e990e1a6e00f0daf and all existing PRG domains remain unchanged. Standalone ChaCha profiles retain null GC suite IDs. Wasm64 IC OT integration/full IC protocol remain blocked, with no fresh OT costs; pinned portable/WASI OT evidence is separate. Network measurements, wall-time statistics and peak live heap remain null.

Frozen identities:

Image Prepared Wasm SHA256 Actual features
Control e103f506ce0a99a7dd2e4153ada43a061c3dfd953181bb5bf6a0ff9f6bcaab9e aes-simd, game-prg-simd, prg-query-batch, prg-simd, prg-xof4
Selected 5592aef82ccb81b339a45169986941fbb90f8d41cc5ccf8cea1b8eeea335c558 aes-narrow, aes-simd, game-prg-simd, prg-query-batch, prg-simd, prg-xof4
Prepared image Actual Wasm bytes
Round4 selected 553,183
Earlier round5 narrow1/2 547,376
Fresh round5 control 574,845
Chosen narrow widths 543,973

These sizes belong to complete prepared images, including their correctness probe code; they are not isolated kernel byte estimates.

A separately audited evaluator diagnostic uses actual N=1/10/100/1000, with one N1000 source profile. Its charge ledger is complete, while stack details are truncated/partial: 252 captured stacks, 736 captured stack charges and 200 retained boundary rows. Source locations cover 399/409 queried points. The filtered N1000 call has body 29,043,126 / whole 35,576,278; the complete primary whole is 35,576,323. Boundary/stack attribution does not provide exact line or component costs, and these diagnostic calls do not replace primary samples.

Exact archived source inputs, not parent commits alone, identify these builds. SDK commit d0e53afc7b7fdc4b7cf4e2ccbe1e55a386133c4b and the frozen SDK/runtime/allocator closure match round4. PocketIC normal13 executable SHA256 is 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6. Primary instrumentation is disabled.

Evidence: control JSON, selected JSON, CSV, source/artifact manifest, independent review and proof scope. Full raw originals remain at /srv/shared/code/newstack/playground/gc-20261031/round5-four-aes-001; the earlier checkpoint remains at /srv/shared/code/newstack/playground/gc-20261031/round5-narrow-aes-001. Curated gzip files are storage encodings; installation receipts retain original transport identities.

python3 crypto/bench/garbled-circuit/report_round5.py