mirrored from https://www.bouncycastle.org/repositories/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Why does engineGeneratePublic need to use SecureRandom? #1520
Comments
It is used in public key validation, specifically for Miller-Rabin tests on the modulus. |
Gotcha, thank you! I may have questions later about how to get a FIPS-certified SecureRandom implementation if needed, but I'll follow the proper FIPS channels for that question. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following:
Why does
generatePublic
need to generate a random number? This operation is fully deterministic.The following is the stack trace starting at
generatePublic
:Forgive me if this is a more basic RSA question that belongs on stackoverflow, and not one specific to bouncycastle.
The text was updated successfully, but these errors were encountered: