Skip to content

Commit

Permalink
Add LC kyber trycompile check to s2n.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Mar 9, 2023
1 parent bf89377 commit a023123
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions s2n.mk
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ ifeq ($(TRY_EVP_MD_CTX_SET_PKEY_CTX), 0)
DEFAULT_CFLAGS += -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX
endif

# Determine if the Kyber 512 KEM API is available in libcrypto
TRY_LIBCRYPTO_SUPPORTS_KYBER512 := $(call try_compile,$(S2N_ROOT)/tests/features/evp_kem_kyber_512.c)
ifeq ($(TRY_LIBCRYPTO_SUPPORTS_KYBER512), 0)
DEFAULT_CFLAGS += -DS2N_LIBCRYPTO_SUPPORTS_KYBER512
endif

# Determine if madvise() is available
TRY_COMPILE_MADVISE := $(call try_compile,$(S2N_ROOT)/tests/features/madvise.c)
ifeq ($(TRY_COMPILE_MADVISE), 0)
Expand Down

0 comments on commit a023123

Please sign in to comment.