Repository navigation
BearSSL canary at f8a2f3d (P-256 check_scalar fix) - #25
Merged
Merged
Conversation
added 2 commits
December 4, 2026 00:04
…e two fixes submitted upstream: the bits2int one and P-256's scalar check, which Clang compiled into a jump on the secret scalar on x86-64
…_p256_m62, so two code spans no longer run together around a possessive
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.
Moves the BearSSL canary to webcpporg/bearssl f8a2f3d: upstream 7bea48e plus the two fixes submitted upstream, the ECDSA bits2int one (ae63032) and P-256's scalar range check (ec57f88). Clang on x86-64 compiled
check_scalar()in ec_p256_m62/m64 into a conditional jump on the secret scalar, which the ctgrind lanes flagged; the fix computes k - 1 < n - 1 with borrow chains only.The canary lint stays red here until webcpp#65 moves the superproject's BearSSL gitlink, because library CI checks out webcpp main (same as crypto#20). webcpp#65 then points libs/crypto at this merge.
Verified locally: ctgrind and ctgrind_space on x86-64 report nothing; testcrypto all on f8a2f3d (x86-64 clang 18, arm64 gcc 13, macOS); crypto tests on macOS; canary fixtures; clang-tidy; Linux lint clean.
🤖 Generated with Claude Code