-
Notifications
You must be signed in to change notification settings - Fork 13
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
new BigInteger() very slow during generation of rsa key #7
Comments
Who had such a problem? |
Having same issue, key generation takes too long. |
@akyGit https://stackoverflow.com/questions/43229527/react-native-openpgp-very-slow-generation-keys-on-devices |
Hey everyone, the assumption in the StackOverflow post is correct, keys generation is very low (especially for everything over 1024 bit keys), because it uses React-Native's JavascriptCore to generate the keys instead of delegating the task to native libraries. I want to port all crypto stuff to use native libraries sometime in the future, but haven't found the time yet (and for the apps I've built with this, 1024 was totally ok). In the meantime, PRs are very welcome and sorry for not responding guys! :) |
I have a trouble with performance during generation of key 2048 bit.
This process can spend from 3 minutes to 14-15.
Therefore I would like to know, what exactly spend time.
It was BigInteger constructors in rsa generate method. (src/crypto/public_key/rsa.js)
call of new BigInteger() can spend from 2 to 5 minutes.
Smartphone:
Project dependencies:
Code snippet:
The text was updated successfully, but these errors were encountered: