[PATCH] build: More changes to allow build with no Kyber.
NIIBE Yutaka
gniibe at fsij.org
Thu Jul 3 03:26:20 CEST 2025
* cipher/Makefile.am (libcipher_la_SOURCES): Move kyber.c and kyber.h
to ...
(EXTRA_libcipher_la_SOURCES): ... here.
* cipher/kem.c: [USE_KYBER]: Only include kyber.h when USE_KYBER.
(_gcry_kem_genkey, _gcry_kem_encap, _gcry_kem_decap): [USE_KYBER]:
Enable Kyber when USE_KYBER.
* tests/keygen.c (check_kem_keys): [USE_KYBER]: Enable Kyber when
USE_KYBER.
--
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
cipher/Makefile.am | 3 ++-
cipher/kem.c | 8 ++++++++
tests/keygen.c | 2 ++
3 files changed, 12 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-build-More-changes-to-allow-build-with-no-Kyber.patch
Type: text/x-patch
Size: 2791 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20250703/65371a9d/attachment.bin>
More information about the Gcrypt-devel
mailing list