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

Bug: bn.mul and fullOffset broken #376

Merged
merged 2 commits into from
Nov 10, 2018
Merged

Conversation

Nilos
Copy link
Collaborator

@Nilos Nilos commented Nov 10, 2018

This PR fixes two bugs:

  1. Multiplication was broken for large limbs due to unsafe integer values
  2. fullOffset calculation was broken leading to decimal values for limbs in _strongReduce where integers were expected.

Thanks to Colin McRae and Jonathan Burns for reporting and providing the patches and tests to fix this!

Thanks also to Ionic Security, Inc. (https://www.ionic.com/) for supporting their work on this two bugs.

Fixes #260 #262 and #363

@Nilos Nilos merged commit bfe3950 into master Nov 10, 2018
@Nilos Nilos deleted the bug/bn-mul-fullOffset-broken branch November 10, 2018 14:45
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.

Getting a CORRUPT: not on the curve! with elGamal sjcl.ecc.curves.c384
1 participant