I’m implementing e2e encryption with OX IM and I have successfully encrypted the message and I can receive it on the other end. However It fails to be decrypted with error
Could not decrypt incoming OpenPGP encrypted message and further details
Decryption failed - No suitable decryption key found. Now I don’t know what it means by suitable decryption. I tried to debug it myself but lost in the code that I could not well understand.
Can anyone point me to what am doing wrong here? I would be happy to provide sample code if it is necessary, but here is the Stack trace:
W/OpenPgpManager: Could not decrypt incoming OpenPGP encrypted message org.bouncycastle.openpgp.PGPException: Decryption failed - No suitable decryption key found at org.pgpainless.decryption_verification.DecryptionStreamFactory.decrypt(DecryptionStreamFactory.java:184) at org.pgpainless.decryption_verification.DecryptionStreamFactory.processPGPEncryptedDataList(DecryptionStreamFactory.java:121) at org.pgpainless.decryption_verification.DecryptionStreamFactory.processPGPPackets(DecryptionStreamFactory.java:102) at org.pgpainless.decryption_verification.DecryptionStreamFactory.create(DecryptionStreamFactory.java:94) at org.pgpainless.decryption_verification.DecryptionBuilder$BuildImpl.build(DecryptionBuilder.java:130) at org.jivesoftware.smackx.ox.crypto.PainlessOpenPgpProvider.decryptAndOrVerify(PainlessOpenPgpProvider.java:194) at org.jivesoftware.smackx.ox.OpenPgpManager.decryptOpenPgpElement(OpenPgpManager.java:548) at org.jivesoftware.smackx.ox.OpenPgpManager$2$1.run(OpenPgpManager.java:569) at java.lang.Thread.run(Thread.java:919)