[PATCH] cipher:kem: Validate input length.

NIIBE Yutaka gniibe at fsij.org
Thu Jun 4 07:46:45 CEST 2026


* cipher/kem.c (_gcry_kem_genkey): Add input length validation.
(_gcry_kem_encap, _gcry_kem_decap): Likewise.
* src/gcrypt.h.in: Add forgotten constants for X448.

--

Reported-by: Ciwan Öztopal
GnuPG-bug-id: 8259
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 cipher/kem.c    | 124 ++++++++++++++++++++++++++++++++++++++++--------
 src/gcrypt.h.in |  13 +++++
 2 files changed, 118 insertions(+), 19 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cipher-kem-Validate-input-length.patch
Type: text/x-patch
Size: 9721 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20260604/12a55d2c/attachment-0001.bin>


More information about the Gcrypt-devel mailing list