-
Notifications
You must be signed in to change notification settings - Fork 91
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
🐛 Decryption error - privateDecrypt #494
Comments
Someone needs to take a dive into the C++ implementation, which is a few years old, and fix things up. Also, more tests need to be ported from the node.js codebase. |
Thanks @boorad, do you have any recommendations of what to do in the mean time? All other react-native libraries for RSA are immature and/or poorly documented. Many of which haven't been touched in years. |
@Morgandri1 can you take the dive into C++ (using XCode) to see what's going on? Use this PR & branch, and the example app. Set some breakpoints in XCode in the C++ files. I've commented out all but the first test in |
To be perfectly honest, I have no idea where to start on that. not sure how to open the lib code in xcode before it compiles |
@boorad I tried diving into the c++ and couldn't find the privateDecrypt or publicEncrypt functions. do you know where i should start? |
What's happening?
I'm trying to decrypt a string encrypted with RSA-PKCS1, and i'm running into this same nondescript error.
I've narrowed it down to two possibilities:
Incorrect keypair
data formatted incorrectly
My current process being halted is:
is there any reason to assume the server is generating an improper keypair? I have verified the key itself is correct.
Reproducible Code
Relevant log output
Device
iPhone 16 Pro iOS 18
QuickCrypto Version
0.7.5
Can you reproduce this issue in the QuickCrypto Example app?
1.0.0-beta3 does not implement privateDecrypt
Additional information
The text was updated successfully, but these errors were encountered: