Preferred measured choices

For the separate honest-execution garbling foundation, use PrgSession and the gate functions with wasm-xof4 and aes-narrow on the qualified IC engine, with the documented hardware register-swizzle assumption. One/two/four AES blocks use the narrow kernel; eight-block batches retain Boolean AES. For independent 32-byte secrets, PrgSession::fill_secrets with wasm-query-batch preserves the same BLAKE3 bytes and now uses single-query readers for lengths up to six; SIMD starts at seven. The prior single-secret SIMD regression is removed in the fresh measurements. The measured comparison uses its own 1/100/1000-operation and fill-size populations; it does not follow the 100-operation default of the standard-algorithm tables below. OT integration and a complete private application protocol remain separate qualification work.

The private 2D proximity benchmark measures R1/R2/R4 and same-image generic Equality8 at actual N1/N100. The dated qualification retains stage costs and independent checks; actual IC OT remains blocked.

For separately profiled game randomness, seeded ChaCha8/12 with wasm-simd offers measured alternatives. These change the randomness contract and retain explicit reduced-round choices; they do not replace the frozen BLAKE3 garbling suite. The separate PRG tables retain their body and whole-update costs. The general-key AES32 primitive is a separate reference. The independent aes-simd Boolean control remains available.

These choices cover the measured standard algorithms and distinct workload contracts. Unless a table explicitly states otherwise, costs are 100 operations in one update, with valid inputs. Paired costs follow the paired operation/case order; hint-mode lists follow the stated mode order. They are actual whole-call means unless explicitly shown as first → median3, including SDK and page fees; no controls or page charges are subtracted. A lower cost for another output, population or acceptance policy is a separate contract.

FULL includes incoming payloads, Wire decoding and replies. STAGED excludes input transport and fixture setup; named fresh/in-call cases include key/context construction in the measured call. PRIOR excludes preparation of the explicitly retained context. Among standard contracts, only ECDSA/Schnorr verification and ChaCha20-Poly1305 opening currently have FULL ingress evidence. The other standard rows have no qualified full-ingress cost.

Case links open all measurements or the dated report, which pin parameters, sample counts, artifacts and raw evidence. Rows not remeasured in the latest round retain their separately pinned artifact costs. The final BLAKE3 receipt named below supplements the current table. All input/output widths are in bytes. Fixed-width primitives do not process the runner's nominal 256-byte message parameter; their actual widths are stated below.

Signature verification

FULL ECDSA selects dense SIMD4 G12 at 113,219,850 instructions per 100. FULL BIP340 aggregate selects SIMD Jacobian/GLV W7 with P+R hints at 57,221,619; exact independent checks cost 100,700,230. The R13 study separates these acceptance contracts. The preceding round also covers X25519; the Schnorr campaign retains earlier window controls. Strict Ed25519 selects dense SIMD4 at 142,979,685 with staged input; its qualification keeps that distinct input and validation policy.

Contract Best measured case(s) Whole instructions / 100 Boundary and actual input → output
ECDSA with checked client inverse fresh-ecdsa/packed-simd4-dense-g12 113,219,850 FULL; 100 different SEC1-65 keys, prehash32, compact signature64 + checked inverse32; fresh parse/table/scratch preparation included.
ECDSA ordinary compact signatures fresh-ecdsa/direct 216,915,273 FULL; SEC1-65 + digest 32B + signature 64B; low-S, no client inverse.
BIP340 aggregate: checked P+R-Y fresh-schnorr/simd-jacobian-glv-w7 57,221,619 FULL; 100 distinct public-X32/message32/signature64 + checked public-Y32/nonce-Y32; fresh workspace, full-field coefficients; integrated artifact.
BIP340 aggregate: no hints / P-Y fresh-schnorr/simd-jacobian-glv-w7 93,549,350 / 78,352,031 FULL; same distinct standard inputs; no/P-only hints measured on the separately pinned private clean artifact, three samples each.
BIP340 exact singles: checked P+R-Y fresh-schnorr/individual 100,700,230 FULL; 100 different 32-byte messages/signers; fresh G12 SIMD scratch in bounded groups, one exact independent equation per record.
BIP340 exact singles: no hints / P-Y fresh-schnorr/individual 230,193,334 / 214,158,875 FULL; selected R13 artifact, same standard inputs; one independent equation per record.
Ed25519 strict singles ed25519.verify.strict-fresh.simd128-dense 142,979,685 STAGED; raw public 32B + message 256B + signature 64B → 100 verdicts; fresh key/R/S checks and dense SIMD scratch included, mixed-order points allowed.
Ed25519 prime-subgroup aggregate ed25519.verify.batch-prime-order.fresh.affine-w5 263,129,724 STAGED; message 256B; fresh key/R/S/subgroup validation and affine W5 MSM; a stricter acceptance policy than singles.
RSA-PSS-3072/e65537: digest / message rsa3072.public31.fresh.digest / rsa3072.public31.fresh.message 536,084,902 / 540,046,102 STAGED; modulus 384B + signature 384B; digest 32B / message 256B → verdict; fresh modulus validation included.

The qualified R13 W7 Schnorr aggregate costs 153,372,169 / 153,399,834 on invalid/mixed requests, one sample each, including all 100 fallback single checks. No earlier key, point or result cache contributes.

At actual N500, explicitly choose SIMD GLV/W8: 218,104,610 whole / 200,154,801 body / 2,240,000 page instructions, one capacity sample. N100 selects W7. The public density guard selects an affine or dense kernel within that window; it does not choose the window. Full coefficients and validation remain intact.

For one unbatched P/R-hinted Schnorr verification, the mean is 1,954,577.69 whole / 1,585,090.69 body / 480,000 page instructions across 100 separate updates with different signatures, after an unmeasured noop update. Every call checks one exact equation with fresh inputs and no key cache. The original one-signature fixture costs 1,970,786 whole instructions (three identical calls). See the R13 report and bidirectional interoperability runner.

Experimental query/off-chain batch certificate

The fourth radix round selects packed borrowed ingress, public SIMD XYZZ MSM, centered byte recoding, in-place bucket updates and four-way challenge hashing. Every query independently checks 105 records and rejects five; every update freshly verifies the selected 100. This remains an experimental Fiat–Shamir protocol requiring independent cryptographic review.

Complete call / population Base-proof update Checkpoint update Checkpoint-producing query Update W
100 distinct keys 39,916,161 39,643,555 164,395,069 6
Ten signatures share one key + 90 other keys 39,942,055 39,509,449 163,329,275 7
Ten keys, ten signatures each 31,011,457 30,578,851 140,246,064 6

These are three identical executions of each retained statement. The report also compares nine additional independently seeded batches, scattered repeats, error paths and ordinary signature controls. Parameters remain b16/t128 and query W6: 1,026B base / 1,924B complete checkpoint proof. Proof size excludes the unchanged 64B P/R hints per signature. Every original message/nonce remains distinct; only public keys repeat where stated. Fixed 192B input rows retain every field.

Matched previous-round checkpoint updates cost 41,122,086 / 40,901,160 / 31,803,607: reductions of 3.60% / 3.40% / 3.85%. Complete costs include Wire, allocations, cleanup and page fees. The distinct checkpoint update incurs 160,000 more page instructions; that increase is included. Independent off-chain proofs pass on fresh canisters with zero prior queries at identical update costs. Base proofs reduce producer work; checkpoints trade additional producer work and bytes for a cheaper replicated update.

Use radix_certificate::{prove_grouped, verify_grouped} for base proofs and checkpoints::{proof_bytes, prove_grouped, verify} for complete Horner witnesses. Public extend supports an externally supplied base proof with full checks. Enable cdk-rsx-crypto-batch/wasm-msm-xyzz for the measured coordinate backend; the benchmark exposes it as wasm-schnorr-msm-xyzz. Ordinary aggregate rows above retain their separately qualified Jacobian artifact. The third round preserves the packed-transport controls and smaller-proof experiments.

Key generation, signing and public-key processing

Contract Best measured case(s) Whole instructions / 100 Boundary and actual input → output
ECDSA public derivation secp256k1.ecdsa.keygen 105,825,828 STAGED; secret 32B → compressed SEC1 public 33B; secret import included.
BIP340 public derivation secp256k1.bip340.keygen 105,908,428 STAGED; secret 32B → normalized x-only public 32B.
Ed25519 public derivation ed25519.keygen 66,489,882 STAGED; seed 32B → public 32B; seed expansion included.
ECDSA RFC6979 signing secp256k1.ecdsa.sign 205,223,700 STAGED; secret 32B + prehashed digest 32B → low-S compact signature 64B; no message hashing claimed.
BIP340 signing secp256k1.bip340.sign 221,683,765 STAGED; secret 32B + message 256B + auxiliary 32B → signature 64B; normalized key construction included.
Ed25519 signing ed25519.sign 137,479,944 STAGED; seed 32B + message 256B → signature 64B; seed expansion and public derivation included.
SEC1 parse: compressed / uncompressed secp256k1.ecdsa.parse-compressed / secp256k1.ecdsa.parse-uncompressed 16,925,728 / 1,424,593 STAGED; SEC1-33 / SEC1-65 → validated point and canonical compressed33 serialization; encodings remain distinct.
Native public-table preparation: ECDSA / BIP340 secp256k1.ecdsa.prepare-native / secp256k1.bip340.prepare-native 248,444,219 / 249,888,849 STAGED; raw SEC1-33 / x-only32 → native verification table per key; includes decode/lift.
Ed25519 validation / public-table preparation ed25519.public.validate / ed25519.public.prepare 18,767,211 / 25,476,114 STAGED; public 32B → validated key / native public table; canonical, on-curve, non-small-order policy.
Ed25519 expanded signing context ed25519.secret.prepare 66,422,136 STAGED; seed 32B → expanded secret and bound public key; public derivation included.
RSA modulus parse / native-context preparation rsa3072.parse / rsa3072.prepare 2,140,565 / 893,995,417 STAGED; modulus384 → validated key /824-byte native modulus-R² context; prepare whole includes an expensive unchanged post-clock 100-context check.
Public scalar inversion secp256k1.scalar.inverse-safegcd 10,015,275 STAGED; public scalar 32B → inverse32 using safegcd; public-verification arithmetic control.

Hashes, MACs and compatible KDF operations

BLAKE3 is the selected Blake for new work. BLAKE2s numbers below are retained historical comparisons, not a competing new recommendation.

Contract Best measured case(s) Whole instructions / 100 Boundary and actual input → output
SHA-256: independent-message SIMD4 sha256-simd4 1,475,078 STAGED; 100 distinct messages 256B → digest 32B each; fresh states, four-message kernel groups, one cohort driver invocation.
SHA-256: default scalar cohort sha256-scalar-cohort 2,885,097 STAGED; same 100-message cohort and complete-output checks; short/fragmented-stream default remains scalar.
SHA-256: long-message block schedules sha256-sms4-cohort 14,009,579 STAGED; 100 distinct messages 2048B → digest 32B each; each message retains serial chaining.
SHA-512 sha512-reference 2,820,384 STAGED; message 256B → digest 64B; reference beats the borrowed scalar path at this measured size.
BLAKE2s-256 historical comparison blake2s-simd4 905,364 STAGED; distinct message 256B → digest 32B; four independent messages per SIMD group.
BLAKE3 blake3-simd4 778,314 STAGED; distinct message 256B → digest32; four-message SIMD grouping; qualified R8 const-FLAGS core.
Ascon-Hash256 ascon-hash256 6,335,467 STAGED; final SP 800-232, message 256B → digest 32B.
Ascon-XOF128 / CXOF128 ascon-xof128 / ascon-cxof128 6,976,973 / 7,866,473 STAGED; message 256B → output 64B; CXOF also has customization 32B.
Raw SHA-256 / SHA-512 compression sha256-compress-optimized / sha512-compress 2,545,984 / 1,957,050 STAGED; four 64-byte / two 128-byte blocks → 32/64-byte chaining state; no padding or complete-hash claim.
Keyed BLAKE3 / historical keyed BLAKE2s blake3-keyed-simd4 / blake2s-keyed-simd4 781,189 / 1,072,845 STAGED; distinct fresh key32 + message256 → MAC32; per-key setup included.
HMAC-SHA256 / HMAC-SHA512 hmac-sha256-fresh / hmac-sha512-fresh 4,588,784 / 4,843,690 STAGED; distinct fresh key 32B + message 256B → MAC 32B / MAC 64B.
Same-call shared-key HMAC-SHA256 / SHA512 hmac-sha256-bulk-key-reused / hmac-sha512-bulk-key-reused 3,598,279 / 3,422,621 STAGED/in-call; one key 32B, 100 distinct messages 256B; prefixes built once inside the call.
HKDF-SHA256 Extract: salt 32B / omitted salt hkdf-sha256-extract / hkdf-sha256-extract-no-salt 4,588,484 / 3,669,984 STAGED; IKM 256B → PRK 32B; supplied salt and omitted salt are separate contracts.
HKDF-SHA256 Expand: distinct PRKs hkdf-sha256-expand-fresh 7,718,084 STAGED; each fresh PRK 32B + info 256B → output 64B.
HKDF-SHA256 Expand: shared PRK hkdf-sha256-expand-bulk-prk-reused 6,725,875 STAGED/in-call; one PRK 32B prepared once, 100 distinct info 256B → output 64B each.
Complete HKDF-SHA256: common public salt hkdf-sha256-full-bulk-salt 8,806,877 STAGED/in-call; distinct IKM 32B, common salt 32B prepared once, info 256B → output 64B; every Extract remains per item.
General standard BLAKE3 derive-key blake3-derive-direct-selected 1,218,313 STAGED; material 256B → output 32B; includes hashing the benchmark public context for each item.

The SHA-256 API guide distinguishes independent-message batching from single-message block scheduling. SIMD4 saves 48.87% against its matched 256-byte scalar cohort. For one actual 64 KiB message, SMS4 costs 4,585,878 whole instructions versus 5,415,529 scalar, including its extra 80,000 page instructions. Short single messages continue to use the scalar API. Certificate streaming keeps that default; dependent tree nodes cannot automatically be grouped into four independent hashes. The earlier scalar-driver SHA rows remain in the full measurement table, with their original artifact and driver scope.

The current BLAKE3 hash, keyed-hash and direct user-key winners use 128-bit Wasm SIMD, four 32-bit lanes, with independent messages packed across lanes. ChaCha20 winners also use four 32-bit lanes; raw SIMD4 processes four counter blocks, while the live cohort groups records. The paired Poly1305 live winner uses two 64-bit lanes. SIMD width is 128 bits even in wasm64; its gains do not change the actual 100-operation count.

The selected strict Ed25519, ECDSA/Schnorr and qualified X25519 agreement paths use explicit 128-bit Wasm SIMD field arithmetic. Other published Ed25519 operations, X25519 public derivations and the earlier HPKE compositions retain their measured backend scope. X25519 SIMD is opt-in; its targeted compiled-code review is not a formal constant-time proof. Upstream AVX2/AVX-512 targets x86_64; a global +simd128 flag alone is not SIMD evidence.

User-key derivation

Contract Best measured case(s) Whole instructions / 100 Boundary and actual input → output
Selected new protocol: distinct secrets user-key.blake3-derive.distinct-secret.direct-parts-simd4 521,792 STAGED/in-call; 100 distinct secret 32B + ID 32B → output 32B; fixed public purpose context, no secret-state cache.
Same derive-key protocol: shared master user-key.blake3-derive.shared-master.direct-parts-simd4 522,918 STAGED/in-call; one master 32B + 100 distinct ID 32B → output 32B; no cached secret-derived context.
Caller-context BLAKE3: distinct secrets user-key.blake3-derive.distinct-secret.domain-in-call-direct-parts-simd4 686,419 STAGED/in-call; secret 32B + ID 32B → output32; public context construction/drop included, no secret-state cache.
Caller-context BLAKE3: shared master user-key.blake3-derive.shared-master.domain-in-call-direct-parts-simd4 686,419 STAGED/in-call; master 32B + 100 distinct ID 32B → output32; public context constructed inside call, no cached secret-derived context.
HKDF-compatible distinct secrets hkdf-sha256-user-key-distinct-salt-reused 3,331,320 STAGED/in-call; distinct IKM 32B, salt 32B, domain 15B + ID 32B → output 32B; common public salt prefixes only.
HKDF-compatible common master hkdf-sha256-user-key-master-reused 1,549,392 STAGED/in-call; master IKM 32B + 100 ID 32B → output 32B; one Extract/PRK construction inside the call.

The qualified R8 distinct-secret path costs 521,792 whole / 101,099 body / 400,000 page instructions per 100 outputs, three identical samples with every output checked. The shared-master row retains its separately measured 522,918 whole / 102,225 body contract; R8 did not remeasure that population.

The earlier fixed-purpose artifact measured both populations at 522,918 versus 573,467 for its matched generic control, an 8.81% whole reduction. Those earlier counts remain pinned to 85ce9a44949a3e4ef2b583da534bb6ce817c66f3866d00b47d709e51a5e5c241; R8's new best-picks round keeps its source and output populations separate. The earlier rejected direct scalar prototype was slower.

The caller-context API costs 686,419 whole / 265,726 body / 560,000 page instructions per 100 outputs for both populations. Its matched generic concatenation control costs 731,899 / 311,206 / 560,000: 6.21% lower whole cost. These same-artifact results include constructing and dropping the public context inside the call using the benchmark purpose string. They have a different setup contract from the fixed-purpose rows above; its artifact is separately pinned.

The separately measured fixed-purpose N=500 capacity call costs 1,115,390 whole instructions (2,230.78/key), body 669,325 and 560,000 page instructions. Its body includes 160,000 additional page charges. This is an actual 500-output call, one sample per capacity configuration; the primary comparison remains N=100.

Use cdk_rsx_crypto_hash::user_kdf::derive4 for the fixed example protocol; choose an application-and-purpose-specific context for a real protocol. The API and contract distinguish the fixed fast path from the general caller-context API. Public context precomputation is allowed; user secrets and secret-derived contexts are not cached by these measurements.

BLAKE3 derives keys from existing secret material. It can replace HKDF in this new protocol, and its output can key symmetric encryption or seed an X25519 private key under a separate purpose context. X25519 still performs public-key agreement; deriving its private key does not remove that curve computation. Existing RFC 9180 HPKE remains on its specified HKDF schedule.

Symmetric encryption and authentication

Staged cipher costs include restoring the caller buffer; input decoding and fixture generation are excluded.

Contract Best measured case(s) Whole instructions / 100 Boundary and actual input → output
ChaCha20-Poly1305 valid opening: incoming distinct keys fresh-symmetric/chachapoly/cohort-poly2 3,873,592 FULL; packed key 32B/nonce 12B/AAD 32B/ciphertext 256B/tag 16B per record → plaintext256; paired Poly1305 cohort.
ChaCha20-Poly1305 seal / open chachapoly-wide-simd4-seal-fresh / chachapoly-wide-simd4-open-fresh 2,949,068 / 2,989,172 STAGED; fresh key 32B, nonce 12B, AAD 32B, body 256 ↔ ciphertext 256B +tag 16B; restoration included.
XChaCha20-Poly1305 seal / open xchachapoly-wide-simd4-seal-fresh / xchachapoly-wide-simd4-open-fresh 3,137,477 / 3,177,881 STAGED; fresh key 32B, nonce 24B, AAD 32B, body 256 ↔ ciphertext 256B +tag 16B.
AES-128-GCM seal / open aes128gcm-seal-fresh / aes128gcm-open-fresh 10,586,643 / 10,626,443 STAGED; fresh key 16B/schedule, nonce 12B, AAD 32B, body 256 ↔ ciphertext 256B +tag 16B.
AES-256-GCM seal / open aes256gcm-seal-fresh / aes256gcm-open-fresh 12,693,743 / 12,733,543 STAGED; fresh key 32B/schedule, nonce 12B, AAD 32B, body 256 ↔ ciphertext 256B +tag 16B.
AES-128-GCM-SIV seal / open aes128gcmsiv-seal-batched-fresh / aes128gcmsiv-open-batched-fresh 12,734,461 / 12,776,365 STAGED; fresh key 16B, batched per-nonce derivation, nonce 12B/AAD 32B/body 256 ↔ ciphertext 256B +tag 16B; nonce-misuse resistance is distinct from ordinary AEAD.
AES-256-GCM-SIV seal / open aes256gcmsiv-seal-batched-fresh / aes256gcmsiv-open-batched-fresh 17,387,861 / 17,429,865 STAGED; fresh key 32B, batched derivation, nonce 12B/AAD 32B/body 256 ↔ ciphertext 256B +tag 16B.
Final Ascon-AEAD128 seal / open ascon-seal-fresh / ascon-open-fresh 3,977,837 / 4,035,643 STAGED; fresh key 16B, nonce 16B, AAD 32B, body 256 ↔ ciphertext 256B +tag 16B; no retained secret context.
ChaCha20 in-place XOR chacha20-simd4-fresh 2,262,457 STAGED; fresh key 32B/nonce 12B, input256 → XOR output 256B; restoration included; encryption only.
Raw ChaCha20 blocks chacha20-blocks 2,888,173 STAGED; fresh key words, four 64-byte keystream blocks → 256 bytes; no authentication.
HChaCha20 subkey hchacha20-simd 1,012,623 STAGED; fixed key 32B + nonce 16B → subkey32; nominal message 256B is unused.
Raw AES-128 / AES-256 encryption aes128-blocks-fresh / aes256-blocks-fresh 5,941,837 / 7,489,043 STAGED; key 16B / key 32B including schedule; sixteen 16-byte blocks → 256 bytes; no AEAD framing.
Raw GHASH / POLYVAL ghash-blocks-prepared64-fresh / polyval-blocks-prepared64-fresh 2,542,295 / 2,378,025 STAGED; key 16B decomposition is inside run; sixteen 16-byte blocks → field tag 16B; no AEAD framing.
Poly1305 tag poly1305-wide-fresh 1,216,623 STAGED; fresh one-time key 32B + message 256B → tag 16B; widened limbs.
Poly1305 verification poly1305-wide-verify 1,245,623 PRIOR one-time test-key context; message 256B +tag 16B → verdict; no fresh-key verification tariff.

For mixed tags, FULL ChaCha20-Poly1305 optimized packed records cost3,635,778 versus 3,874,492 for the paired cohort. The valid-cohort winner therefore depends on the input pattern. Staged seal/open rows replay synthetic fixtures; nonce-advancing retained-key record cases are separate contracts. Poly1305 retained-key fixtures use public test keys and do not define a key-reuse protocol.

Key agreement, KEMs and complete HPKE compositions

Contract Best measured case(s) Whole instructions / 100 Boundary and actual input → output
X25519 independent public derivations x25519.keygen.independent.fresh-call.batch-experimental 51,927,702 STAGED/in-call; 100 raw secret 32B imports/public derivations → public 32B each; shared final inversion and scratch included.
X25519 independent agreement x25519.dh.independent.fresh-call.simd128.global-inverse 64,098,112 STAGED/in-call; 100 raw secret32/peer32 pairs → shared32 + per-row nonzero flag; import/clamp, global inversion scratch and owned wiping/drop included.
X25519 fresh one-local-key agreement x25519.dh.one-local-key.fresh-call.simd128.global-inverse 64,097,495 STAGED/in-call; one raw local secret32 + 100 peers32 → shared32 + flag per peer; import/clamp and owned scratch wiping/drop included.
X25519 retained local key,100 peers x25519.dh.batch-inversion-experimental 189,428,640 PRIOR local-secret object; peer32 → shared32; shared final inversion; matched scalar costs 202,651,795.
DHKEM(X25519) DeriveKeyPair dhkem.x25519.keygen 69,914,487 STAGED; caller IKM 32B → secret/public 32B; RFC 9180 derivation included.
DHKEM recipient import dhkem.x25519.recipient.import 65,553,753 STAGED; raw secret 32B import and public derivation inside run → recipient context/public 32B; no earlier recipient cache.
DHKEM fresh encapsulation dhkem.x25519.encap.fresh-call.simd128 134,722,476 → 134,744,323 STAGED/in-call; first → median3; distinct public32 + ephemeral IKM32 → enc32/shared32; derivations, scratch and owned-output retirement included.
DHKEM fresh decapsulation dhkem.x25519.decap.fresh-call.simd128 130,378,051 → 130,399,958 STAGED/in-call; first → median3; raw recipient secret32 +enc32 → shared32; public derivation included; one 100-operation SIMD cohort.
Fresh HPKE sender / receiver setup hpke.base.sender.setup.fresh-call.simd128 / hpke.base.receiver.setup.fresh-call.simd128 137,541,279 → 137,570,598 / 133,197,709 → 133,227,028 STAGED/in-call; first → median3 per direction; 100 independent contexts, info29 prepared in call; receiver public derivation included, sender outputs enc32.
Fresh HPKE setup+seal / setup+open hpke.base.single.seal.fresh-call.simd128 / hpke.base.single.open.fresh-call.simd128 147,290,671 → 147,319,990 / 142,963,397 → 142,992,716 STAGED/in-call; first → median3; X25519/HKDF-SHA256/ChaCha20-Poly1305; info29/AAD30, body256 ↔ enc32/ciphertext256/tag16; complete setup included.
Common-recipient HPKE epoch hpke.base.receiver.setup.epoch-key-in-call.scalar-cohort 221,216,647 → 221,245,966 STAGED/in-call; first → median3; one recipient public derivation/info preparation,100 independent establishments; distinct shared-key population.
Experimental LightSABER keygen lightsaber-keygen-simd-toom4-fresh 66,854,503 STAGED/in-call; three seed32 values → public672/secret1568; qualified R8, three identical valid samples.
Experimental LightSABER fresh encapsulation lightsaber-encapsulate-simd-toom4-fresh 85,517,827 STAGED/in-call; fresh public672 import + seed32 → ciphertext736/shared32; full construction/drop included.
Experimental LightSABER fresh decapsulation lightsaber-decapsulate-simd-toom4-fresh 100,083,259 STAGED/in-call; fresh secret1568 import + ciphertext736 → shared32; full implicit-rejection algorithm, three valid samples.
Experimental SABER keygen / encap / decap saber-keygen-simd-toom4-fresh / saber-encapsulate-simd-toom4-fresh / saber-decapsulate-simd-toom4-fresh 127,048,897 / 152,842,103 / 172,357,459 STAGED/in-call; three identical valid samples per operation; public992/secret2304/ciphertext1088/shared32; keygen three seed32 values, encap seed32; fresh imports.
ML-KEM-512 /768 Q15 key generation mlkem512.simd128-keygen / mlkem768.simd128-keygen 90,144,526 → 91,938,926 / 145,953,956 → 148,597,956 STAGED; first → median3 for each parameter; entropy64 → public800/1184 +secret1632/2400; fixed FIPS 203 widths.
ML-KEM-512 /768 Q15 fresh encapsulation mlkem512.simd128-encapsulate-fresh-key / mlkem768.simd128-encapsulate-fresh-key 97,965,930 → 98,545,730 / 156,131,964 → 156,947,764 STAGED; checked fresh public import +entropy32 → ciphertext768/1088 +shared32; first → median3.
ML-KEM-512 /768 Q15 fresh decapsulation mlkem512.simd128-decapsulate-fresh-key / mlkem768.simd128-decapsulate-fresh-key 125,733,390 → 125,746,190 / 195,041,320 → 195,054,120 STAGED; checked fresh secret import1632/2400 +ciphertext768/1088 → shared32; first → median3; implicit rejection retained.
ML-KEM-512 /768 Q15 shared-key expanded encapsulation mlkem512.simd128-encapsulate-expanded-same-call-key / mlkem768.simd128-encapsulate-expanded-same-call-key 55,405,979 → 55,985,779 / 74,049,816 → 74,865,616 STAGED/in-call; one checked public import/matrix expansion,100 distinct entropy/ciphertexts → shared32 each; first → median3.
ML-KEM-512 /768 Q15 shared-key expanded decapsulation mlkem512.simd128-decapsulate-expanded-same-call-key / mlkem768.simd128-decapsulate-expanded-same-call-key 77,222,837 → 77,235,637 / 103,562,564 → 103,575,364 STAGED/in-call; one checked secret import/matrix expansion,100 ciphertexts → shared32 each; first → median3; differs from 100 fresh keys.
ML-KEM-512 /768 public-key import mlkem512.public-key-decode / mlkem768.public-key-decode 8,589,126 / 12,312,328 STAGED; encoded public 800B/1184 → checked public-key objects.
ML-KEM-512 /768 secret-key import mlkem512.secret-key-decode / mlkem768.secret-key-decode 20,078,922 / 29,350,524 STAGED; encoded secret 1632B/2400 → checked secret-key objects.

X25519 remains the agreement primitive in the measured HPKE suite. Its new selected N100 SIMD/global agreement wins against the matched independent scalar control; see the costs recorded in the current round. The earlier scalar comparisons retain their own artifact pins. HPKE setup is remeasured in the current round. DHKEM and HPKE seal/open retain their earlier artifact costs; no new composition cost is inferred. Fresh context work is included as labelled. Other derivation/epoch populations retain their scopes. Inputs remain staged, and tiny SIMD cohorts can lose. See the selected default qualification and earlier PQC/X measurements.

LightSABER/SABER are experimental Round-3 KEMs, separate from standardized ML-KEM. R8's staged KEM performance rows are valid-only, three samples each. Earlier R5/R6 target captures separately checked complete invalid/mixed rejection outputs: LightSABER 101,016,765 / 101,016,659 and SABER 174,157,965 / 174,157,859. Those rejection costs remain attached to their earlier artifacts, not R8.

The R8 Q15 ML-KEM choices pass independent actual-target gates: 10 uncached invocations, 40 checks over eight official vectors, plus all measured full outputs. First → median3 separates empty output slots from replacing and wiping the prior cohort’s retained outputs inside samples 2/3. Key import/context construction remains fresh; no key-context or successful-gate cache is used. Earlier one-sample comparisons remain first-versus-first. Setup/KAT costs are separate from these staged run costs and pinned in the report. ML-KEM implicit rejection returns a secret for correctly sized corrupt inputs, rather than an authenticated-decryption acceptance flag.

Explicit retained-context contracts

These retain their own setup-excluded boundary; their costs do not replace fresh-context or full-ingress costs.

Contract Best measured case(s) Whole instructions / 100 Boundary and actual input → output
ECDSA signing with imported secret secp256k1.ecdsa.sign-context 205,184,525 PRIOR secret context; digest 32B → signature 64B; import excluded.
BIP340 signing with normalized key secp256k1.bip340.sign-context 117,041,797 PRIOR secret/public context; message 256B → signature 64B; key construction excluded.
Ed25519 signing with expanded key ed25519.sign.prepared 71,037,093 PRIOR expanded secret/public context; message 256B → signature 64B.
ECDSA native-table hinted verification secp256k1.ecdsa.verify-native-hint-jacobian-window8-cohort 131,188,145 PRIOR 100 native public tables; distinct digest 32B/signature 64B/hint 32B; no fresh parse/table cost.
BIP340 native-table verification secp256k1.bip340.verify-native-midstate 202,153,795 PRIOR even-Y native public tables/public tag midstate; message 256B/signature 64B → verdict.
Ed25519 strict prepared verification ed25519.verify.many-strict 189,208,950 PRIOR 100 validated public tables; message 256B/signature 64B; exact single policy, no success cache.
RSA-PSS prepared digest / message verification rsa3072.public31.prepared.digest / rsa3072.public31.prepared.message 489,827,848 / 493,788,948 PRIOR modulus/R² contexts; digest 32B / message 256B +signature 384B → verdict.
Prepared HMAC-SHA256 / SHA512 tags hmac-sha256-prepared / hmac-sha512-prepared 3,589,607 / 3,410,528 PRIOR secret-derived prefixes; message 256B → MAC 32B / MAC 64B; separate from fresh/in-call shared keys.
Prepared HMAC-SHA256 verification hmac-sha256-verify 3,717,607 PRIOR secret-derived prefixes; message 256B +MAC 32B → verdict.
BLAKE3 derive-key: prepared public context blake3-derive-simd4-prepared 782,789 PRIOR public context key only; material 256B → output 32B; no secret material cached.
HPKE independent established sender / receiver records hpke.base.session.seal / hpke.base.session.open 6,483,668 / 6,453,447 PRIOR 100 independent sessions; body 256 ↔ ciphertext 256B +tag 16B; setup excluded, sequence advances.
HPKE one established sender / receiver cohort hpke.base.session.seal.single-context / hpke.base.session.open.single-context 6,032,391 / 6,072,148 PRIOR one ordered session; 100 body 256 records; a distinct traffic contract from 100 independent sessions.
HPKE exporter hpke.base.export 4,159,524 PRIOR exporter; exporter-context256 → output 32B.
HPKE exported independent AEAD seal / open hpke.exported-aead.seal / hpke.exported-aead.open 6,458,638 / 4,219,977 PRIOR exported keys; explicit nonce 12B/AAD 30B/body 256 ↔ ciphertext 256B +tag 16B; separate record protocol.

Qualified research measurements

Contract Best measured case(s) Whole instructions / 100 Boundary and actual input → output
Preferred modified ECDSA research: NMVR ast96 hss-positive-only/nmvr 99,218,651 FULL known-positive cohort; nonce point 64B +scalar 32B +checked inverse32, digest 32B/public key supplied; one aggregate equation.
Fastest HSS positive equation hss-positive-only/hss 97,804,515 FULL known-positive cohort; same ast96 bundle, Paper stopping profile; general authenticity/soundness unestablished.
FourQ public derivation / validation / agreement fourq.research.public / fourq.research.validate / fourq.research.agree 96,364,781 / 12,970,454 / 246,596,471 STAGED; secret/public/shared widths 32B; research-only portability/security qualification, not a standard X25519 replacement.

Why NMVR rather than the fastest HSS row

Our matched research canister measured 99,218,651 instructions for NMVR and 97,804,515 for HSS: NMVR costs 1.45% more. Both receive the full nonce point, scalar and checked inverse; neither uses an earlier public-key cache. The signature-plus-hint bundle is 128 bytes (R.x || R.y || s || inverse).

NMVR weights the equations independently. For fixed nonzero residuals in a prime-order group, conditioning on the other independent coefficients leaves at most one accepting value for a selected random coefficient. That is the familiar randomized-batching argument. HSS derives related coefficients from one shared value and the signature scalars; that independent-coefficient argument does not automatically apply. This is our reason to prefer NMVR for further development, not a completed proof or security audit of this implementation.

Both modified variants are still positive-input research evaluations. The transcript-derived deterministic coefficients and adversarial acceptance need further review before production use. Standard BIP340 specifies its own complete batch construction; experimental coefficient policies must remain separately named. See the paper review, 2026 paper, randomizer research, and BIP340 batch specification.

Qualification limits

No preferred cost is inferred from setup rejection, failed execution, native measurement, N1 screening or another batch size. RSA signing/ key generation, ML-KEM-1024 and half-width Schnorr coefficient research have no qualifying 100-operation IC result in this selection. Raw AES, GHASH/POLYVAL, compression and stream-XOR controls retain their narrower contracts. Hash/MAC/KDF, key generation/signing, Ed25519/RSA, X25519/DHKEM/HPKE/ML-KEM and the other AEADs still need live-input qualification before a full-ingress tariff can be claimed.

Update choices only from newly measured matching contracts. Keep every variant, failure, exact artifact and source identity in BENCHMARKS.md.