Diffusion GnuPG b4599a0449ea

gpg: Allow decryption using several passphrases in may cases.

Authored by werner on Jul 6 2018, 8:24 AM.

Description

gpg: Allow decryption using several passphrases in may cases.

* g10/mainproc.c (symkey_decrypt_seskey): Check for a valid algorithm.
(proc_symkey_enc): Clear passpharse on error from above function.

This does not work reliable as stated in bug 3795 but we can try to
fix ~95% of all cases. The real fix is to use AEAD which will come
with 2.3

  • GnuPG-bug-id: T3795, T4050
  • Signed-off-by: Werner Koch <wk@gnupg.org>