-
Notifications
You must be signed in to change notification settings - Fork 82
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
crypto_sign_verify_detached() return -1 when keys are not generated in the same method #137
Comments
If you need to see code for this then here it is
|
Have you tried initialization? import org.libsodium.jni.NaCl; (this calls System.loadLibrary("sodiumjni");) |
Yes i have initialized NaCl.sodium() in the app start itself . |
I have the same issue. It returns -1 I also tried sodium_crypto_sign_verify_detached() in PHP and that fails too. A signature generated in PHP works fine. |
Hello @joshjdevl , |
Hi,
@joshjdevl
I am making a encryption library using libsodium jni .
This is my method
Although this method is verifying signature correctly but i am making seperate classes for PublicKeys, PrivateKey, Signature, KeyPair. And when i uses keys from these classess the verification always fails even i have manually verified that the keys are same at the time of creation, signing and verification. What can be the issue.
The text was updated successfully, but these errors were encountered: