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] Encountered OpenPGP Exception during operation! #2886
Comments
Is it just a single subkey for signing? |
It's an encryption subkey the one that I exported to my phone. |
Please update to 6.0.2, that might already fix your problem. I'm not sure what's happening precisely, but I'd rather not chase ghosts just to find we fixed the issue before ;) Also, does the decryption work if you just encrypt some text to your key via OpenKeychain? |
@Valodim How do you update? I didn't find the .apk for version 6.0.2. |
seems fdroid is still building it 🤷 https://gitlab.com/fdroid/fdroiddata/-/issues/3197 |
Today I tried the new version I tried encrypting and decrypting just plain text and it works. |
I encountered this problem already more than a year ago, when I upgraded a key version - later I opened the issue. Today I tried to reencrypt all of them with the new cv25519/ed25519 key pair, but I have the same problem. I couldn't fix the problem even with an old RSA keys. |
I have found the solution in the following comment. After disabling the non-compliant AEAD mechanism, I had to reencrypt all the passwords, only after that OpenKeyChain can decrypt them. |
when will be |
If I'm wrong, please feel free to correct me. The AHEAD mechanism is a mechanism providing extra security on top of symmetric encryption. So while backwards compatibility is important, it should not come at the expense of security. I'll probably wait until this feature is added and then use it again. |
I have also encountered the same error with OpenKeychain 6.0.4, with the same log output:
Here are the steps to reproduce the error:
@Valodim Could you take a look at this when you have time? |
I ran into this exact problem after having generated a new ECC/ED25519 key with GnuPG 2.4.4 and re-encrypting my pass password store with it: Pass can't decrypt anything anymore due to "Encountered OpenPGP Exception during operation!". It would be really cool if this was fixed/added, as the standard keys that GnuPG creates can't be used with Android pass and OpenKeychain at the moment … |
having the same issue, see related post on andoird-password-store |
I have a GPG key on my computer. The key consists of:
The authentication keys are irrelevant to the problem, I'm just mentioning their existence.
I also have installed pass. I have initialized my password store with the RSA encryption key and the cv25519 encryption key.
Furthermore, I exported the secret subkey (cv25519) with the following command in order to import it in OpenKeyChain to be able to decrypt passwords to my phone.
gpg -o android.gpg --export-secret-subkeys 0xKEY_ID!
I then imported the key into OpenKeyChain and going to advanced settings of the key, I see that the primary key is characterized as stripped (because the secret part is missing), but the subkey responsible for the decryption looks normal.
Expected Behavior
Tap on a password through password store, prompt me to allow password store to use OpenKeyChain to decrypt the password, provide the password and see the decrypted text.
Current Behavior
I tried decrypting a password of mine and the error I'm getting is:
Encountered OpenPGP Exception during operation!
I then copied an encrypted password manually to the storage of the phone and tried decrypting through the openkeychain app directly (instead of using the password store). The error is the same. I exported the log, but this is all it says:
Steps to Reproduce (for bugs)
Steps for reproducing are described above
Context
I cannot use password store as I am using the last 3 years and been completely satisfied. 😢
Your Environment
13 (Lineage OS 20)
Oneplus Nord (AC2003)
6.0.0
F-Droid
The text was updated successfully, but these errors were encountered: