From jussi.kivilinna at iki.fi Sat Apr 5 15:15:55 2025 From: jussi.kivilinna at iki.fi (Jussi Kivilinna) Date: Sat, 5 Apr 2025 16:15:55 +0300 Subject: [PATCH] mpi/ec-nist: fix NIST-P224 failing on 32-bit architectures Message-ID: <20250405131555.169894-1-jussi.kivilinna@iki.fi> * mpi/ec-nist.c (_gcry_mpi_ec_nist224_mod): Adjust output limb size of number of limbs in mpi_limb64_t is greater than one. -- Signed-off-by: Jussi Kivilinna --- mpi/ec-nist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpi/ec-nist.c b/mpi/ec-nist.c index 36357476..317c0ed6 100644 --- a/mpi/ec-nist.c +++ b/mpi/ec-nist.c @@ -266,7 +266,7 @@ _gcry_mpi_ec_nist224_mod (gcry_mpi_t w, mpi_ec_t ctx) STORE64_COND(wp, 2, mask2, d[2], mask1, s[2]); STORE64_COND(wp, 3, mask2, d[3], mask1, s[3]); - w->nlimbs = wsize * LIMBS_PER_LIMB64; + w->nlimbs = wsize * LIMBS_PER_LIMB64 - (LIMBS_PER_LIMB64 - 1); if (!(ctx->flags & GCRYECC_FLAG_LEAST_LEAK)) MPN_NORMALIZE (wp, w->nlimbs); } -- 2.45.2 From gniibe at fsij.org Tue Apr 8 08:13:17 2025 From: gniibe at fsij.org (NIIBE Yutaka) Date: Tue, 8 Apr 2025 15:13:17 +0900 Subject: [PATCH] mpi:ec: Set GCRYECC_FLAG_LEAST_LEAK, calling mpi_ec_mul_point_lli. Message-ID: <32f848ef9dca726a0bfe1b895b93880522938aab.1744092730.git.gniibe@fsij.org> * mpi/ec.c (_gcry_mpi_ec_mul_point): Enable GCRYECC_FLAG_LEAST_LEAK when calling mpi_ec_mul_point_lli. -- Signed-off-by: NIIBE Yutaka --- mpi/ec.c | 2 ++ 1 file changed, 2 insertions(+) -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-mpi-ec-Set-GCRYECC_FLAG_LEAST_LEAK-calling-mpi_ec_mu.patch Type: text/x-patch Size: 426 bytes Desc: not available URL: From a.jahangirzad at gmail.com Tue Apr 8 22:07:34 2025 From: a.jahangirzad at gmail.com (Amir Mohammad Jahangirzad) Date: Tue, 8 Apr 2025 23:37:34 +0330 Subject: DCO for libgcrypt contribution Message-ID: <5fc90e30-dfcc-4c49-be32-c43598a186a7@gmail.com> Hi, I'd like to contribute to the libgcrypt project. Libgcrypt Developer's Certificate of Origin.? Version 1.0 ========================================================= By making a contribution to the Libgcrypt project, I certify that: (a) The contribution was created in whole or in part by me and I ??? have the right to submit it under the free software license ??? indicated in the file; or (b) The contribution is based upon previous work that, to the ??? best of my knowledge, is covered under an appropriate free ??? software license and I have the right under that license to ??? submit that work with modifications, whether created in whole ??? or in part by me, under the same free software license ??? (unless I am permitted to submit under a different license), ??? as indicated in the file; or (c) The contribution was provided directly to me by some other ??? person who certified (a), (b) or (c) and I have not modified ??? it. (d) I understand and agree that this project and the contribution ??? are public and that a record of the contribution (including ??? all personal information I submit with it, including my ??? sign-off) is maintained indefinitely and may be redistributed ??? consistent with this project or the free software license(s) ??? involved. Signed-off-by: Amir Mohammad Jahangirzad -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x3CA8FD88D4BE0DF7.asc Type: application/pgp-keys Size: 3191 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From gniibe at fsij.org Fri Apr 18 04:24:01 2025 From: gniibe at fsij.org (NIIBE Yutaka) Date: Fri, 18 Apr 2025 11:24:01 +0900 Subject: [PATCH] Mark nonstring use cases with __nonstring__ attribute. Message-ID: * src/gcrypt.h.in (_GCRY_GCC_ATTR_NONSTRING): New. * cipher/chacha20.c (chacha20_keysetup): Use _GCRY_GCC_ATTR_NONSTRING. * cipher/cipher-gcm-siv.c (gcm_siv_selftest): Likewise. * cipher/ecc.c (compute_keygrip): Likewise. * cipher/serpent.c (serpent_test): Likewise. * tests/basic.c (check_aes128_cbc_cts_cipher): Likewise. (_check_gcm_cipher, check_gcm_siv_cipher): Likewise. (check_ocb_cipher_largebuf_split, check_ocb_cipher_checksum): Likewise. * tests/keygrip.c (key_grips): Likewise. -- GnuPG-bug-id: 7617 Signed-off-by: NIIBE Yutaka --- cipher/chacha20.c | 4 ++-- cipher/cipher-gcm-siv.c | 16 ++++++++-------- cipher/ecc.c | 2 +- cipher/serpent.c | 6 +++--- src/gcrypt.h.in | 9 +++++++++ tests/basic.c | 34 +++++++++++++++++----------------- tests/keygrip.c | 2 +- 7 files changed, 41 insertions(+), 32 deletions(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Mark-nonstring-use-cases-with-__nonstring__-attribut.patch Type: text/x-patch Size: 7855 bytes Desc: not available URL: