Skip to content

Fix modulus 1 branch in BoxedMontyParams::new - #1401

Merged
tarcieri merged 1 commit into
masterfrom
fix-modulus-one-branch-in-boxedmontyparams
Nov 9, 2026
Merged

tarcieri merged 1 commit into
masterfrom
fix-modulus-one-branch-in-boxedmontyparams

Conversation

@tarcieri

@tarcieri tarcieri commented Nov 9, 2026

Copy link
Copy Markdown
Member

Use conditional_set_zero for the modulus 1 correction, avoiding secret-dependent control flow and allocation.

Thanks to @rldyourmnd for reporting this issue.

@tarcieri
tarcieri force-pushed the fix-modulus-one-branch-in-boxedmontyparams branch from 188a5ee to 9028f9a Compare November 9, 2026 02:07
Use `conditional_set_zero` for the modulus `1` correction, avoiding
secret-dependent control flow and allocation.

Thanks to @rldyourmnd for reporting this issue.
@tarcieri
tarcieri force-pushed the fix-modulus-one-branch-in-boxedmontyparams branch from 9028f9a to b179b13 Compare November 9, 2026 02:07
@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.77%. Comparing base (6447487) to head (b179b13).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1401   +/-   ##
=======================================
  Coverage   91.77%   91.77%           
=======================================
  Files         190      190           
  Lines       23428    23429    +1     
=======================================
+ Hits        21500    21501    +1     
  Misses       1928     1928           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tarcieri
tarcieri merged commit cd67842 into master Nov 9, 2026
33 checks passed
@tarcieri
tarcieri deleted the fix-modulus-one-branch-in-boxedmontyparams branch November 9, 2026 02:36
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.

1 participant