Home GnuPG

cipher:aeswrap: Fix padding length check.

Description

cipher:aeswrap: Fix padding length check.

* cipher/cipher-aeswrap.c (_gcry_cipher_keywrap_decrypt_auto): When
padding length is 8, correctly return GPG_ERR_CHECKSUM.

The maximum valid padding is 7B. Thanks coverity scan.

  • GnuPG-bug-id: T7130
  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on May 10 2024, 5:01 PM
gniibeCommitted on Thu, Jun 6, 8:03 AM
Parents
rCeca1ed096038: build: Minor updates
Branches
Unknown
Tags
Unknown
Tasks
T7130: Fix static reports by static analyser in libgcrypt