Skip to content

PPC64LE P-224 ECDSA: verification's [u]G by the comb - #4814

Merged
alex merged 1 commit into
mainfrom
claude/ppc64le-ecdsa-verify-comb-p224
Nov 9, 2026
Merged

alex merged 1 commit into
mainfrom
claude/ppc64le-ecdsa-verify-comb-p224

Conversation

@alex

@alex alex commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Part of the PPC64LE audit, #4141 (ECDSA verification). This follows #4804, which gave P-224's public keys and signatures the comb, as #4770 did for P-256, #4795 for brainpoolP256r1/P384r1, #4800 for P-521 and #4807 for P-384.

vg_ecdsa_p224_verify on PPC64LE now computes [u]G + [v]Q by Cfg.pointsWith instead of the joint ladder (Cfg.points, joint):

Proofs

Proof/Ecdsa/Verify/PPC64LE/P224/Verified.lean follows P-256's (P256Comb.lean, Verified.lean). P-224's four-word layout is P-256's, so the windows write the same bytes:

  • combPts_ok uses TComb.comb_ok and Window.P224.mul_ok.
  • verify_ppc uses verifyWith_ok, and verify_ct uses taintSym on the table's symbol.
  • The witnesses hold the table, and verifyHash_verified uses Hash.verifyHash_verified_cons.

No TCB, Spec or registration changes.

Generated crate. Only PPC64LE changes: the verification, and the removal of vg_p224_point_double, an internal function that only the joint ladder called.

Testing

  • Under qemu-ppc64le, cargo test --target powerpc64le-unknown-linux-gnu --release ecdsa passes, including Wycheproof's ecdsa_secp224r1_sha224, _sha256 and _sha512 p1363 tests.
  • lake build (every module) and Emit.lean pass on this tree, which is main (0119b187) plus this commit.
  • The Static checks and check_lean_public_imports.py pass.
  • cargo fmt --check and clippy -D warnings pass.

Benchmarks

Run 42614498958: arches=powerpc64, ecdsa_p224_sha224_verify, base 0119b187 (main).

Benchmark Base Head Change
ecdsa_p224_sha224_verify/64 397.62 µs 261.85 µs 34.1% faster
ecdsa_p224_sha224_verify/1024 395.05 µs 258.61 µs 34.5% faster
ecdsa_p224_sha224_verify/16384 490.42 µs 335.23 µs 31.6% faster

🤖 Generated with Claude Code

https://claude.ai/code/session_01TKUFHHNk9SreF92JBY2H8M

[u]G by the signed seven-bit comb of #4804 (its table, VG_P224_COMB, an
artifact constant) and [v]Q by the four-bit windows, as P-256's
verification (#4770), in place of the joint ladder. The internal point
doubling only the joint ladder called is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TKUFHHNk9SreF92JBY2H8M
@github-actions github-actions Bot added the untrusted-only This changes exclusively implementations and proofs, and thus is entirely formally verified. label Nov 9, 2026
@alex
alex added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 597daef Nov 9, 2026
24 checks passed
@alex
alex deleted the claude/ppc64le-ecdsa-verify-comb-p224 branch November 9, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

untrusted-only This changes exclusively implementations and proofs, and thus is entirely formally verified.

Development

Successfully merging this pull request may close these issues.

2 participants