Repository navigation
PPC64LE P-224 ECDSA: verification's [u]G by the comb - #4814
Merged
Merged
Conversation
[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
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_verifyon PPC64LE now computes[u]G + [v]QbyCfg.pointsWithinstead of the joint ladder (Cfg.points,joint):[u]G: PPC64LE P-224: public keys and RFC 6979 signatures by the signed seven-bit comb #4804's signed seven-bit comb, with 32 windows. Its table is the artifact constant the key and signature code already use,VG_P224_COMB.[v]Q: ECDH's four-bit windows (Window.Cfg.mul). They readb, in Montgomery's form, fromEM, wherepointsWithwrites it.Proofs
Proof/Ecdsa/Verify/PPC64LE/P224/Verified.leanfollows 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_okusesTComb.comb_okandWindow.P224.mul_ok.verify_ppcusesverifyWith_ok, andverify_ctusestaintSymon the table's symbol.verifyHash_verifiedusesHash.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
cargo test --target powerpc64le-unknown-linux-gnu --release ecdsapasses, including Wycheproof'secdsa_secp224r1_sha224,_sha256and_sha512p1363 tests.lake build(every module) andEmit.leanpass on this tree, which ismain(0119b187) plus this commit.check_lean_public_imports.pypass.cargo fmt --checkandclippy -D warningspass.Benchmarks
Run 42614498958:
arches=powerpc64,ecdsa_p224_sha224_verify, base0119b187(main).ecdsa_p224_sha224_verify/64ecdsa_p224_sha224_verify/1024ecdsa_p224_sha224_verify/16384🤖 Generated with Claude Code
https://claude.ai/code/session_01TKUFHHNk9SreF92JBY2H8M