-
Notifications
You must be signed in to change notification settings - Fork 9
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
Prime 256 is too long #90
Comments
Hey @micchickenburger! I was eventually able to take a look into this thanks to the global day off on Friday :) I think you are partially correct :) This particular number requieres 257 bits, 33 bytes to fit.
I wanted to create a test that checks the size of all the numbers in the parameters, but this test actually already exists. Please take a look. The same test also sends us to the related discussion about why the parameter is actually of 257 bits instead of 256 bits. |
Related issue: midonet#90
Prime Group 256 is defined here:
tssrp6a/src/parameters.ts
Line 32 in ec90b27
I calculate this prime having a length of 264 bits instead of 256 bits. All the other primes are the correct length. (It is possible that I made an error in my code, though.)
The text was updated successfully, but these errors were encountered: