Skip to content

constant-time and c_suites follow-ups: judge host CPU, BearSSL ECDSA on every lane, WASI leak's cause - #28

Merged
pinhopro merged 3 commits into
mainfrom
test/small-follow-ups
Dec 5, 2026
Merged

pinhopro merged 3 commits into
mainfrom
test/small-follow-ups

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 5, 2026

Copy link
Copy Markdown
Contributor
  • dudect_judge.py prints the host CPU (model name and microcode, or the arm64 implementer and part) as its first line and repeats it in each warning, so a verdict names the machine it was taken on.
  • c_suites: bearssl_test_ecdsa runs BearSSL's ECDSA_i15 and ECDSA_i31 tests on every ordinary lane. The P-521 nonce bias of the 32381d6 pin reached main because every CI run from 2026-11-22 to 2026-12-02 was cancelled before c-suites ran; this target fails on that pin and passes on the current one (clang, gcc 15, emscripten, wasip2, wasip3, MSVC 14.3 and 14.5).
  • dudect_test.cpp: the unjudged WASI cases now record their measured cause. A 24-runner probe shows the key-dependent timing only in bitsliced AES (BearSSL ct64 and ct, ctaes) under wasmtime 50.0.1 on AMD Zen 3 and Zen 4. GHASH, a plain store and load by value, Zen 5, Intel and native runs all read below 4.1, so no backend choice removes it.

🤖 Generated with Claude Code

R added 3 commits December 5, 2026 02:08
…, and repeats it in each warning

A program under wasmtime cannot read the CPU and prints cpu="unavailable"; the judge, which runs
on the host, reads /proc/cpuinfo (or macOS's brand string) as dudect.hpp's parse_cpuinfo does.
…BearSSL computing a signing nonce wrong fails every lane

webcpporg/bearssl's 32381d6 dropped P-521's top nonce bits; only the lane c-suites ran test_crypto,
and no CI run of it completed while that pin stood. bearssl_test_ecdsa runs ECDSA_i15 and ECDSA_i31
(RFC 6979's vectors, P-521's included) from upstream's test_crypto.c, unchanged; on 32381d6 it fails
with "ECDSA KAT wrong signature value", on the current pin it passes (clang, gcc 15, wasip2,
wasip3, Emscripten).
… AES as compiled for Zen 3 and Zen 4, so the unjudged WASI cases carry their cause
@pinhopro
pinhopro merged commit f1b1a59 into main Dec 5, 2026
38 checks passed
@pinhopro
pinhopro deleted the test/small-follow-ups branch December 5, 2026 19:20
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