Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.1 changes #34

Merged
merged 20 commits into from
Jan 1, 2025
Merged

Release 2.1 changes #34

merged 20 commits into from
Jan 1, 2025

Conversation

dufkan
Copy link
Member

@dufkan dufkan commented Dec 29, 2024

This PR introduces several enhancements and bug fixes, including support for the curve Wei25519, point existence validation during decoding with fromX, and extended modular size support (up to 4k for compatible smartcards).

Changes

  • added left bit shift implementation (shiftLeft)
  • extended Tonelli-Shanks algorithm for computing modular square root (the previous implementation was correct only for certain moduli)
  • added support for cofactor curves
  • added definition of Wei25519 (a curve isomorphic to Curve25519, tested on JCOP4 P71)
  • fix of a bug in integer division
  • added quadratic residuosity check functionality (isQuadraticResidue)
  • point decoding from X coordinate fromX now returns true if such a point exists

@dufkan dufkan requested a review from petrs December 29, 2024 12:35
@petrs
Copy link
Member

petrs commented Dec 30, 2024

Thank you @dufkan for this significant PR. I added only minor comments which are non-blocking for merge - please take a look.

@dufkan dufkan merged commit 1cc9654 into OpenCryptoProject:master Jan 1, 2025
1 check passed
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.

None yet

2 participants