-
Notifications
You must be signed in to change notification settings - Fork 215
disallow defining MP_DIGIT_BIT, only allow MP_8/16/31/32/64BIT #291
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
Conversation
Would practically kill |
Thanks! Good to know. How many additional bits do we need? 4 bits? Usable 28 on 32, 60 on 64 etc? |
|
@czurnieden The comment says "28 bit is needed to make porting easier", but this is clearly not the reason then. Maybe there should also be a warning that MP_31BIT is harmful? I don't know!? |
It is not harmful per se it just has consequences. But I think you are right, these consequences should be pointed out in a more precise way at a more prominent place. |
|
Ok, could you add a comment since you seem to know the consequences? If you agree with this PR (that MP_DIGIT_BIT should not be defined by the user), you can just add it to this PR or rework it as you wish. |
But I just told you?
Even 2 bit would result in 32 limbs, 992 bits but 4 bit will support up to 8k bit large RSA keys which I find sufficient for the next couple of years. We could try a couple of variations and do a benchmark?
No, don't like to mess with other people's PRs without a very good reason. Just C&P if you like it. I would add to it In the case that FFT finds its way into LTM because I don't plan to implement the MP_31BIT version, so no FFT for MP_31BIT. |
85236e6 to
406b02a
Compare
406b02a to
774f263
Compare
|
fixed and rebased |
774f263 to
37b0f1b
Compare
37b0f1b to
b0938d7
Compare
Maybe also make MP_31BIT the default the next time the ABI is broken?