[PATCH 1/2] cipher:dilithium: Fix the glue of libgcrypt.
NIIBE Yutaka via Gcrypt-devel <[email protected]> Fri, 10 Apr 2026 10:45:44 +0900
| Newsgroups | gmane.comp.encryption.gpg.libgcrypt.devel |
|---|---|
| Message-ID | <5a875908cb95407e12c7d206e31c287b0e06dbca.1775717788.git.gniibe@fsij.org> |
This is a multi-part message in MIME format. --------------2.47.3 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit * cipher/dilithium.h (dilithium_sign, dilithium_verify): Define the macro correctly so that we can keep using _gcry namespace for internal functions. -- It was mistake when we followed the code of Kyber. Fixes-commit: 81a8332963e2a5581ee0e7d0393363e8b9015bbf Signed-off-by: NIIBE Yutaka <[email protected]> --- cipher/dilithium.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --------------2.47.3 Content-Type: text/x-patch; name="0001-cipher-dilithium-Fix-the-glue-of-libgcrypt.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-cipher-dilithium-Fix-the-glue-of-libgcrypt.patch" diff --git a/cipher/dilithium.h b/cipher/dilithium.h index 88a48094..dd3597a5 100644 --- a/cipher/dilithium.h +++ b/cipher/dilithium.h @@ -56,8 +56,8 @@ #ifdef _GCRYPT_IN_LIBGCRYPT /**** Start of the glue code to libgcrypt ****/ #define dilithium_keypair _gcry_mldsa_keypair -#define dilithium_encap _gcry_mldsa_encap -#define dilithium_decap _gcry_mldsa_decap +#define dilithium_sign _gcry_mldsa_sign +#define dilithium_verify _gcry_mldsa_verify /**** End of the glue code ****/ #define DILITHIUM_KEYPAIR_STACK_BURN (128 * 1024) --------------2.47.3 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gcrypt-devel mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gcrypt-devel --------------2.47.3--