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

RSA: Decide what to do if byte-length of d is shorter than BITS/8. #841

Open
keks opened this issue Feb 19, 2025 · 0 comments
Open

RSA: Decide what to do if byte-length of d is shorter than BITS/8. #841

keks opened this issue Feb 19, 2025 · 0 comments

Comments

@keks
Copy link
Member

keks commented Feb 19, 2025

Currently we just return an error, but this has led to us rejecting keys generated by OpenSSL (in the benchmarks, not the real world). What is the right thing to do here? Accept N-1? N-2? Anything?

More context:

That's indeed weird. Would you need to pad it to use it with hacl maybe? But since we don't care too much about RSA right now, let's put it on the pile of things to investigate when we need it.

Originally posted by @franziskuskiefer in #840 (comment)

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

No branches or pull requests

1 participant