Home GnuPG

cipher: Return GPG_ERR_INV_KEYLEN when wrong key length.

Description

cipher: Return GPG_ERR_INV_KEYLEN when wrong key length.

* cipher/idea.c (do_setkey): Return GPG_ERR_INV_KEYLEN.
* cipher/rfc2268.c (setkey_core): Likewise.
* cipher/serpent.c (serpent_setkey_internal): Likewise.
(serpent_setkey): Likewise.
  • Reported-by: Guido Vranken <guidovranken@gmail.com>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Apr 2 2021, 2:49 AM
Parents
rCaaa30381eac3: cipher-gcm-ppc: add big-endian support
Branches
Unknown
Tags
Unknown