Home GnuPG

build: More changes to allow build with no Kyber.

Description

build: More changes to allow build with no Kyber.

* 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.

Cherry-picked master commit of:
d9acecb02a90f8a746d7a9349782a08b014c82ba

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 18 2025, 6:59 AM
Parents
rCacd0b4347002: build: Allow build with no Kyber.
Branches
Unknown
Tags
Unknown