[PATCH 12/17] cipher:dilithium: Don't include unused freeze function.
NIIBE Yutaka via Gcrypt-devel <[email protected]> Sat, 28 Jun 2025 12:44:49 +0900
| Newsgroups | gmane.comp.encryption.gpg.libgcrypt.devel |
|---|---|
| Message-ID | <80bb6f75d719ceb5fca3f7d7c608ec7fddc2d19f.1751080340.git.gniibe@fsij.org> |
* cipher/dilithium-common.c (freeze): Remove. * cipher/dilithium.c (freeze): Remove. -- GnuPG-bug-id: 7640 Signed-off-by: NIIBE Yutaka <[email protected]> --- cipher/dilithium-common.c | 2 ++ cipher/dilithium.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) _______________________________________________ Gcrypt-devel mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gcrypt-devel
0012-cipher-dilithium-Don-t-include-unused-freeze-functio.patch
(text/x-patch, 788 B)
diff --git a/cipher/dilithium-common.c b/cipher/dilithium-common.c
index 27579798..d16f22f7 100644
--- a/cipher/dilithium-common.c
+++ b/cipher/dilithium-common.c
@@ -1366,6 +1366,7 @@ int32_t caddq(int32_t a) {
return a;
}
+#if 0 /* Not used */
/*************************************************
* Name: freeze
*
@@ -1381,3 +1382,4 @@ int32_t freeze(int32_t a) {
a = caddq(a);
return a;
}
+#endif
diff --git a/cipher/dilithium.c b/cipher/dilithium.c
index ccfcb62a..452c1b26 100644
--- a/cipher/dilithium.c
+++ b/cipher/dilithium.c
@@ -302,8 +302,6 @@ static int32_t reduce32(int32_t a);
static int32_t caddq(int32_t a);
-static int32_t freeze(int32_t a);
-
/*************** dilithium/ref/rounding.h */
static int32_t power2round(int32_t *a0, int32_t a);