Skip to content

Int32 repro & ConstantTime #579

Merged
thehoul merged 81 commits into
int32-reviewedfrom
int32-repro
Dec 16, 2025
Merged

Int32 repro & ConstantTime #579
thehoul merged 81 commits into
int32-reviewedfrom
int32-repro

Conversation

@ValeriodeSa

@ValeriodeSa ValeriodeSa commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

Depends on #582

Note

Add a constant-time build mode with a new big-int backend, refactor code/tests behind build tags, switch DKG/VSS/DSS to uint32 indices, and update CI, lint, and coverage to support both modes.

  • Core/Crypto:
    • Introduce constant-time build mode (constantTime) with a new compatible big-integer backend (compatible/bigmod) and assembly accelerators; gate existing variable‑time code/tests behind !constantTime.
    • Refactor suites: constant-time exports limited, variable‑time suites moved to *_vartime.go.
  • Protocols/Types:
    • Standardize indices/thresholds to uint32 across DKG/VSS/DSS and related APIs; fix range and index handling.
    • Minor API cleanups (e.g., direct []kyber.Point use in anon, mask ops, recovery functions).
  • Tests/Benchmarks:
    • Add/adjust tests and benchmarks for both modes (incl. BLS12‑381 fixtures); split vartime tests with build tags.
  • CI/Tooling:
    • Expand test matrix to run with/without constantTime; aggregate coverage from both; revamp lint config; minor Makefile/log tweaks; ignore *.bck.yml.

Written by Cursor Bugbot for commit 01aac07. This will update automatically on new commits. Configure here.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

7 similar comments
@github-actions

github-actions Bot commented Aug 5, 2025

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@AnomalRoil AnomalRoil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few comments, including outdated ones

Comment thread .github/workflows/tests.yml
Comment thread .golangci.bck.yml Outdated
Comment thread .golangci.yml
Comment thread Makefile
Comment thread Makefile Outdated
Comment thread util/random/rand_test.go Outdated
Comment thread suites/all.go Outdated
Comment thread share/poly_test.go Outdated
Comment thread share/dkg/rabin/dkg_test.go
Comment thread pairing/bls12381/gnark/g2.go
@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

4 similar comments
@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@github-actions

github-actions Bot commented Sep 8, 2025

Copy link
Copy Markdown

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

@pierluca
pierluca marked this pull request as ready for review November 7, 2025 08:27

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread shuffle/pair.go
@jbsv
jbsv changed the base branch from master to constantFirstPart November 10, 2025 16:22
@thehoul thehoul mentioned this pull request Nov 11, 2025
Comment thread docs/scalar.md
@thehoul
thehoul force-pushed the int32-repro branch 2 times, most recently from 94d6ec6 to 1fbefbf Compare November 14, 2025 11:59
@CLAassistant

CLAassistant commented Nov 17, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@thehoul
thehoul force-pushed the constantFirstPart branch 2 times, most recently from 71995d3 to 919fa0b Compare November 17, 2025 12:14
@thehoul thehoul mentioned this pull request Nov 18, 2025
@thehoul thehoul mentioned this pull request Dec 12, 2025
Comment thread compatible/bigmod/extra_test.go Fixed
@thehoul
thehoul merged commit 9e5a693 into int32-reviewed Dec 16, 2025
15 of 24 checks passed
@thehoul
thehoul deleted the int32-repro branch December 16, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants