Repository navigation
PPC64LE P-384 ECDH: [d]P by four-bit windows - #4719
Merged
Merged
Conversation
alex
force-pushed
the
claude/ppc64le-ecdh-p224
branch
from
November 8, 2026 20:40
f7ed1f4 to
e3e7b87
Compare
alex
force-pushed
the
claude/ppc64le-ecdh-p384
branch
from
November 8, 2026 20:40
53a2d68 to
db2861d
Compare
The windows of P-256's ECDH (Impl/Ecdsa/PPC64LE/Window.lean) on P-384, whose a is also -3: the proof of Proof/Ecdsa/PPC64LE/P256/Window.lean on P-384's field and the signature's layout for six-word coordinates (96 windows, the table of 16 entries of 144 bytes from byte 5248). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TKUFHH4GefHP3pmPRSL4N4
alex
force-pushed
the
claude/ppc64le-ecdh-p384
branch
from
November 8, 2026 21:46
db2861d to
576c776
Compare
alex
marked this pull request as ready for review
November 8, 2026 21:46
This was referenced Nov 8, 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 #4141 (PPC64LE audit, finding 1). Follows #4715 (P-224) and #4712 (P-256).
vg_ecdh_p384computed[d]Pwith the Montgomery ladder (1.83 ms on POWER9, 4.2× OpenSSL). It now uses #4712's four-bit windows,Impl/Ecdsa/PPC64LE/Window.lean, unchanged. P-384'sais also-3; its coordinates are six words.Proof/Ecdsa/PPC64LE/P384/Window.lean:mul_okon P-384's field and the signature's layout for six words. Slots are 48 bytes. The table holds 16 entries of 144 bytes frombitsAt 6 3 = 5248, ending at 7552, inside the 8192-byte working space. There are 96 windows over the 384 bits of the table of bits. The proof reuses P-256's curve-independent lemmas.Proof/Ecdh/PPC64LE/P384/Verified.lean:win_mulPowOkand theVerifiedtheorem throughexchangeWith_ok. Constant time is checked bytaint_decideon the new literal.Like the repository's other P-384 proofs, the new modules set
exponentiation.thresholdto 512, so that2 ^ 384is evaluated.No TCB or Spec change.
Testing
lake build,Emit.leanand--checkpass. The only crate change isecdh_p384.rsand its assembly.check_lean_public_imports.pypass.Benchmark
Benchmarks run 42520501224, with
arches=powerpc64,modules=ecdh_p384and base b7c10de, on POWER9:ecdh_p384/48🤖 Generated with Claude Code
https://claude.ai/code/session_01TKUFHH4GefHP3pmPRSL4N4