[PATCH] cipher:rsa:pkcs1: Reject shorter PS on decryption.

NIIBE Yutaka gniibe at fsij.org
Fri Aug 21 07:39:26 CEST 2026


* cipher/rsa-common.c (_gcry_rsa_pkcs1_decode_for_enc): Validate
the length of PS.

--

GnuPG-bug-id: 8393
Reported-by: JEAN Jeremy <Jeremy.Jean at ssi.gouv.fr>
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 cipher/rsa-common.c | 6 ++++++
 1 file changed, 6 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cipher-rsa-pkcs1-Reject-shorter-PS-on-decryption.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20260821/eeb2661d/attachment-0003.bin>


More information about the Gcrypt-devel mailing list