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
error -9809 when verifying signed string #77
Comments
Could you specify which line is getting the false? |
@henrinormak - I get a false on both -
Could be an interesting observation, I just found out, it returns false on simulator but on true my test device. (I get true for the first line, and false for the second line on the device. Both false on simulator) |
@henrinormak - any news you have on this? |
No, sorry, I haven't had time to investigate this. I might have some time later this week, but I can't guarantee anything. In general if everything works on the device, it seems like a problem with the entitlements (if you look at some of the other closed issues here, you might get help from those). |
I converted your example into a test case and ran it on the simulator, it passed as expected (verification was successful for original data, whilst failing for corrupted data). As such I'm afraid I can't help as I can't reproduce the behaviour you describe. |
Thank you for your feedback and time @henrinormak ! |
I can't think of a reason why, but the error code is a generic one, so nothing can be completely eliminated as a reason. |
Error -9809 equals errSSLCrypto. Maybe your KeyChain is broken. Are you perhaps running on a jailbroken iOS device? It does work for me:
|
@henrinormak @Craz1k0ek - thanks for your feedback here. It works now. I am honestly not sure why it didn't work before. I haven't made any changes to implementation. |
I am using the below code to sign and verify the signature but getting
false
always! Digging in further, I found out the error code is -9809 - An underlying cryptographic error was encountered.Need help in getting this solved please.
Below, am pasting my code -
The text was updated successfully, but these errors were encountered: