mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-06 11:53:39 +08:00
Add ENABLE_KYBER to CMake
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user