Home GnuPG
Diffusion GnuPG d720c584f1f2

gpg: Make OCB mode compliant in de-vs mode.

Description

gpg: Make OCB mode compliant in de-vs mode.

* g10/mainproc.c (proc_encrypted): Determine cipher mode and pass it
to the is_compliant test.

This patch also switches from just assuming CFB mode to passing the
correct mode to gnupg_cipher_is_compliant. Except for the legacy EAX
mode we only have these two modes and thus it does not really matter.
But correcting this is more future proof.

This was found while fixing
Backported-from-master: a73c88817ce2dc05d4eefc2a8f31b89504523a9a

The comliance.c part was already done in 2.2

Details

Provenance
wernerAuthored on Sep 3 2025, 4:11 PM
Parents
rGe6c397de0ecf: Release 2.2.48
Branches
Unknown
Tags
Unknown
Tasks
T7804: de-vs compliance not shown if also password encrypted