Skip to content

Issues batch D: crypto known answers that run (#1053 #1055 #1063); dead lib/test and tests/ deleted (#1066) - #3251

Merged
ehartford merged 2 commits into
issues-cfrom
issues-d
Nov 11, 2026
Merged

ehartford merged 2 commits into
issues-cfrom
issues-d

Conversation

@ehartford

@ehartford ehartford commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1053, #1055, #1063, #1066. Deletes the top-level tests/ directory: 16 files, none compiling, none referenced by the build (law 9).

Battery: GREEN on the stack top 0855fa8 (out/battery/battery.log: rc=0 green; uat 12 pass, 1 skip by platforms:), one battery for stack #3253, run after rebasing onto main b7a01bd.

Eric Hartford added 2 commits November 11, 2026 01:27
bench.w, runner.w and testing.w did not compile (`-> void`, `&mut T`, the
old match-subject syntax) and had no caller in src/, lib/, tools/, build/
or test/; the harness in use is std.testing and `with test`. Law 9.
…56 and ECDSA that run; the dead tests/ directory goes

std.crypto.hmac, bigint, ec, ecdsa and std.tls's PRF had no test that
ran: the suites under tests/ were written in a syntax the compiler stopped
reading (`unsafe:` prefixes, `-> void`, `&mut`), and nothing in the build
names that directory. Each module gains a known-answer function beside
aes128_gcm_kat's precedent, checked by one behavior fixture:
- HMAC-SHA256: RFC 4231 test case 2.
- Modular exponentiation: 3^7 mod 13 and 4^13 mod 497.
- P_SHA256: the TLS working group's vector.
- P-256: the public key of 1 is G.
- ECDSA P-256: RFC 6979 A.2.5 verifies, and is refused over a digest with
  one bit flipped.
tests/ (16 files, none compiling, none referenced) is deleted (law 9).
ec.w's "Public API" header named module-private functions; it says what
they are.
@ehartford
ehartford added this pull request to stack #3253 November 11, 2026 09:43
@ehartford ehartford changed the title issues d Issues batch D: crypto known answers that run (#1053 #1055 #1063); dead lib/test and tests/ deleted (#1066) Nov 11, 2026
@ehartford
ehartford marked this pull request as ready for review November 11, 2026 09:44
@ehartford
ehartford merged commit ddc3fd5 into main Nov 11, 2026
@ehartford
ehartford deleted the issues-d branch November 11, 2026 09:44
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.

[tests] crypto suites (bigint/rsa/crypto) not executable: stale unsafe:/-> void syntax

1 participant