[PATCH] cipher:kyber: Apply a change from upstream.
NIIBE Yutaka via Gcrypt-devel <[email protected]> Tue, 25 Nov 2025 13:32:35 +0900
| Newsgroups | gmane.comp.encryption.gpg.libgcrypt.devel |
|---|---|
| Message-ID | <bdc3724d721dfd65fdd8cad311855461f9a101c1.1764045140.git.gniibe@fsij.org> |
* cipher/kyber-kdep.c (crypto_kem_dec): Fix the buffer size. -- Manually apply upstream main commit in of: 4768bd37c02f9c40a46cb49d4d1f4d5e612bb882 Signed-off-by: NIIBE Yutaka <[email protected]> --- cipher/kyber-kdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) _______________________________________________ Gcrypt-devel mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gcrypt-devel
0001-cipher-kyber-Apply-a-change-from-upstream.patch
(text/x-patch, 469 B)
diff --git a/cipher/kyber-kdep.c b/cipher/kyber-kdep.c index 2fc0ea7b..774504ce 100644 --- a/cipher/kyber-kdep.c +++ b/cipher/kyber-kdep.c @@ -526,7 +526,7 @@ int crypto_kem_dec(uint8_t *ss, uint8_t buf[2*KYBER_SYMBYTES]; /* Will contain key, coins */ uint8_t kr[2*KYBER_SYMBYTES]; - uint8_t cmp[KYBER_CIPHERTEXTBYTES+KYBER_SYMBYTES]; + uint8_t cmp[KYBER_CIPHERTEXTBYTES]; const uint8_t *pk = sk+KYBER_INDCPA_SECRETKEYBYTES; indcpa_dec(buf, ct, sk);