Add ENABLE_KYBER to CMake

This commit is contained in:
Zhi Guan
2025-12-27 10:52:07 +08:00
parent 8447edb067
commit 8239b4099f
4 changed files with 729 additions and 516 deletions

View File

@@ -61,6 +61,7 @@ option(ENABLE_SHA1 "Enable SHA1" ON)
option(ENABLE_SHA2 "Enable SHA2" ON)
option(ENABLE_AES "Enable AES" ON)
option(ENABLE_CHACHA20 "Enable Chacha20" ON)
option(ENABLE_KYBER "Enable Kyber" ON)
option(ENABLE_SKF "Enable SKF module" OFF)
option(ENABLE_SDF "Enable SDF module" ON)
@@ -477,6 +478,13 @@ if (ENABLE_CHACHA20)
endif()
if (ENABLE_KYBER)
message(STATUS "ENABLE_KYBER is ON")
list(APPEND src src/kyber.c)
list(APPEND tests kyber)
endif()
if (ENABLE_INTEL_RDRAND)
include(CheckSourceCompiles)
set(CMAKE_REQUIRED_FLAGS "-rdrand")