Mailing List Archive

Cannot decrypt file after clearing cache
Hi all,
I wish to encrypt a file with a passphrase, possibly copy the file elsewhere, and decrypt using the same passphrase. 
If I encrypt a file (with a passphrase) it can then be decypted without entering a passphrase:> echo "test" > test.txt> gpg -c test.txt> gpg -d test.txt.gpg gpg: AES256.CFB encrypted datagpg: encrypted with 1 passphrasetest
I assume it does not prompt me for a passphrase because it is cached.
If I clear the password cache, and then try to decrypt, the decryption fails (it does not prompt for a password):> gpg-connect-agent reloadagent /byeOK> gpg -d test.txt.gpggpg: AES256.CFB encrypted datagpg: problem with the agent: End of filegpg: encrypted with 1 passphrasegpg: decryption failed: Bad session key
Rebooting the machine does not fix the problem i.e. if I reboot and try to decrypt the file, it fails with the same error (Bad session key). In this case however it does prompt me for the password. After entering the password it fails.
I am using a fresh install of Fedora 35 and gpg2 version 2.3.2.
Why is it failing after I clear the cache?
Re: Cannot decrypt file after clearing cache [ In reply to ]
On Mittwoch, 24. November 2021 12:39:15 CET Stephen Jeffrey via Gnupg-users
wrote:
> After entering the
> password it fails. I am using a fresh install of Fedora 35 and gpg2 version
> 2.3.2.
> Why is it failing after I clear the cache?

Because symmetric encryption is broken in version 2.3.2. See
https://dev.gnupg.org/T5577 for details.

Use any other version. Too bad that Fedora 35 seems to have packaged this
version. Please file a bug with them so that they can backport the fix or
update to 2.3.3.

Regards,
Ingo
Re: Cannot decrypt file after clearing cache [ In reply to ]
Thanks Ingo.
I submitted a bug report, it is here (https://bugzilla.redhat.com/show_bug.cgi?id=2026617).
CheersSteve

On Wednesday, 24 November 2021, 10:51:52 pm AEST, Ingo Klöcker <kloecker@kde.org> wrote:

On Mittwoch, 24. November 2021 12:39:15 CET Stephen Jeffrey via Gnupg-users
wrote:
> After entering the
> password it fails. I am using a fresh install of Fedora 35 and gpg2 version
> 2.3.2.
> Why is it failing after I clear the cache?

Because symmetric encryption is broken in version 2.3.2. See
https://dev.gnupg.org/T5577 for details.

Use any other version. Too bad that Fedora 35 seems to have packaged this
version. Please file a bug with them so that they can backport the fix or
update to 2.3.3.

Regards,
Ingo
_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users