Reference implementations of PQC
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

427 lignes
15 KiB

  1. cmake_minimum_required(VERSION 3.13)
  2. project(cryptocore VERSION 0.0.1 LANGUAGES C)
  3. include(FetchContent)
  4. include(ExternalProject)
  5. set(CMAKE_CXX_STANDARD 20)
  6. set(CMAKE_C_STANDARD 99)
  7. set(CMAKE_POSITION_INDEPENDENT_CODE ON)
  8. enable_language(C)
  9. enable_language(CXX)
  10. enable_language(ASM)
  11. set_property(GLOBAL PROPERTY obj_libs "")
  12. # Build with address sanitizer
  13. if(ADDRSAN)
  14. string(APPEND EXTRA_CXX_FLAGS " -fsanitize=undefined,address,leak -fno-omit-frame-pointer")
  15. set(EXTRA_LDFLAGS " -fsanitize=undefined,address,leak")
  16. endif()
  17. if(MEMSAN)
  18. # PQC_MEMSAN enables usage of some internals from clang
  19. if (NOT CMAKE_C_COMPILER_ID MATCHES "Clang")
  20. message(FATAL_ERROR "Must use clang if compiled with memory sanitizer.")
  21. endif()
  22. if(ADDRSAN)
  23. message(FATAL_ERROR "Can't use MSAN and ASAN")
  24. endif()
  25. include(.cmake/libstd-memory_sanitizer.mk)
  26. # LLVM project location
  27. set(LLVM_PRJ ${CMAKE_CURRENT_BINARY_DIR}/3rd/llvm-project)
  28. set(LLVM_PRJ_LIB ${LLVM_PRJ}/usr/local/lib)
  29. set(LLVM_PRJ_INC ${LLVM_PRJ}/usr/local/include)
  30. # Add memory sanitizer instrumented libraries
  31. set(CMAKE_ARGS_MEMCHECK_LIB "-stdlib=libc++")
  32. set(CMAKE_ARGS_MEMCHECK_INC "-isystem -I${LLVM_PRJ_INC} -I${LLVM_PRJ_INC}/c++/v1")
  33. set(CMAKE_ARGS_MEMCHECK_FLAGS "-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -Wno-unused-command-line-argument")
  34. # Enablin "keep-going" flag alows two things:
  35. # 1. Enables CT_EXPECT_UMR()/CT_REQUIRE_UMR() in tests. For some reason MSan will halt
  36. # on error even if it expects UMR. And hence, CT can't be tested. This is probably a bug.
  37. # 2. reports all the errors from the run, not only the first one (don't fail-fast)
  38. string(APPEND CMAKE_ARGS_MEMCHECK_FLAGS " -mllvm -msan-keep-going=1")
  39. set(EXTRA_CXX_FLAGS "${CMAKE_ARGS_MEMCHECK_FLAGS} ${CMAKE_ARGS_MEMCHECK_LIB} ${CMAKE_ARGS_MEMCHECK_INC} -DPQC_MEMSAN_BUILD")
  40. set(CXXLIBS_FOR_MEMORY_SANITIZER cxx cxxabi)
  41. endif()
  42. # Contant time memory checks with CTGRIND (requires clang and -DMEMSAN)
  43. if(CTSAN)
  44. if (NOT MEMSAN)
  45. message(FATAL_ERROR "Constant time sanitizer requires -DMEMSAN")
  46. endif()
  47. if (NOT CMAKE_C_COMPILER_ID MATCHES "Clang")
  48. message(FATAL_ERROR "Constant time sanitizer requires Clang")
  49. endif()
  50. string(APPEND EXTRA_CXX_FLAGS " -DPQC_USE_CTSANITIZER")
  51. endif()
  52. # Contant time memory checks with CTGRIND (requires valgrind)
  53. if (CTGRIND)
  54. if (MEMSAN OR CTSAN)
  55. message(FATAL_ERROR "Can't use memory sanitizer (MEMSAN) and CTGRIND")
  56. endif()
  57. string(APPEND EXTRA_CXX_FLAGS " -DPQC_USE_CTGRIND")
  58. endif()
  59. set(CMAKE_VERBOSE_MAKEFILE ON)
  60. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "~/.cmake/Modules")
  61. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "3rd/cmake-modules")
  62. set(CMAKE_CXX_STANDARD 11)
  63. set(CMAKE_POSITION_INDEPENDENT_CODE ON)
  64. string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
  65. if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
  66. set(ARCH "ARCH_x86_64")
  67. elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "amd64")
  68. set(ARCH "ARCH_x86_64")
  69. elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
  70. set(ARCH "ARCH_x86_64")
  71. elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
  72. set(ARCH "ARCH_x86")
  73. elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386")
  74. set(ARCH "ARCH_x86")
  75. elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
  76. set(ARCH "ARCH_x86")
  77. elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
  78. set(ARCH "ARCH_aarch64")
  79. elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64")
  80. set(ARCH "ARCH_aarch64")
  81. else()
  82. message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR})
  83. endif()
  84. # Arch settings
  85. if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  86. set(MACOSX TRUE)
  87. endif()
  88. if(CMAKE_C_COMPILER_ID MATCHES "Clang")
  89. # Additional flags only useful when compiling with clang
  90. string(APPEND PQC_CMAKE_C_CXX_FLAGS " -Wconditional-uninitialized -Wno-missing-variable-declarations -Wno-unused-command-line-argument")
  91. endif()
  92. if (MACOSX)
  93. set(CMAKE_C_COMPILER /usr/bin/cc CACHE PATH "" FORCE)
  94. set(CMAKE_CXX_COMPILER /usr/bin/c++ CACHE PATH "" FORCE)
  95. endif()
  96. # Global configuration
  97. string(APPEND PQC_CMAKE_C_CXX_FLAGS " -Wno-ignored-qualifiers \
  98. -Wall \
  99. -Werror \
  100. -Wextra \
  101. -Wshadow \
  102. -Wno-variadic-macros \
  103. -Wunused-result \
  104. -Wno-unused-command-line-argument \
  105. -Wno-undef")
  106. if(CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 11.0)
  107. string(APPEND PQC_CMAKE_C_CXX_FLAGS " -Wno-stringop-overread \
  108. -Wno-stringop-overflow \
  109. -Wno-array-parameter")
  110. endif()
  111. include(.cmake/common.mk)
  112. # Control Debug/Release mode
  113. if(CMAKE_BUILD_TYPE_LOWER STREQUAL "debug")
  114. string(APPEND PQC_CMAKE_C_CXX_FLAGS " -g3 -O0 -Wno-unused")
  115. else()
  116. string(APPEND PQC_CMAKE_C_CXX_FLAGS " -O3")
  117. endif()
  118. # Set CPU architecture
  119. string(APPEND PQC_CMAKE_C_CXX_FLAGS " -D${ARCH}")
  120. # Build for haswell if on x86_64
  121. if(${ARCH} STREQUAL "ARCH_x86_64")
  122. add_compile_options("-march=haswell")
  123. endif()
  124. # Dependencies
  125. ExternalProject_Add(
  126. gtest_project
  127. SOURCE_DIR ${PROJECT_SOURCE_DIR}/3rd/gtest
  128. GIT_REPOSITORY https://github.com/google/googletest.git
  129. GIT_TAG a3460d1aeeaa43fdf137a6adefef10ba0b59fe4b
  130. PREFIX ${CMAKE_CURRENT_BINARY_DIR}/3rd/gtest
  131. INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/3rd/gtest
  132. CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/3rd/gtest -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} -DCMAKE_CXX_FLAGS=${EXTRA_CXX_FLAGS} -DCMAKE_C_FLAGS=${EXTRA_CXX_FLAGS} -Dgtest_disable_pthreads=ON
  133. )
  134. if(MEMSAN)
  135. add_dependencies(gtest_project ${CXXLIBS_FOR_MEMORY_SANITIZER})
  136. endif()
  137. FetchContent_Declare(
  138. gbench
  139. SOURCE_DIR ${PROJECT_SOURCE_DIR}/3rd/gbench
  140. GIT_REPOSITORY https://github.com/kriskwiatkowski/benchmark.git
  141. GIT_TAG 49862ab56b6b7c3afd87b80bd5d787ed78ce3b96
  142. )
  143. FetchContent_Populate(gbench)
  144. FetchContent_Declare(
  145. cpu_features
  146. SOURCE_DIR ${PROJECT_SOURCE_DIR}/3rd/cpu_features
  147. GIT_REPOSITORY https://github.com/kriskwiatkowski/cpu_features.git
  148. GIT_TAG 38f4324533390b09079a38b524be8b178be8e435
  149. )
  150. FetchContent_Populate(cpu_features)
  151. if(PQC_WEAK_RANDOMBYTES)
  152. string(APPEND PQC_CMAKE_C_CXX_FLAGS " -DPQC_WEAK_RANDOMBYTES")
  153. endif()
  154. # Build CPU features
  155. set(CMAKE_C_FLAGS "${PQC_CMAKE_C_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
  156. set(CMAKE_CXX_FLAGS "$${PQC_CMAKE_C_CXX_FLAGS} {EXTRA_CXX_FLAGS}")
  157. set(BUILD_PIC ON CACHE BOOL "")
  158. add_subdirectory(3rd/cpu_features)
  159. # PQC library
  160. # Set C, CXX, and LD flags
  161. string(APPEND PQC_CMAKE_C_CXX_FLAGS " -Wpedantic")
  162. set(CMAKE_C_FLAGS "${PQC_CMAKE_C_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
  163. set(CMAKE_CXX_FLAGS "${PQC_CMAKE_C_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
  164. string(APPEND LDFLAGS "${EXTRA_LDFLAGS}")
  165. include_directories(
  166. public
  167. src/common/
  168. src
  169. 3rd/cpu_features/include
  170. )
  171. # Define sources of the components
  172. add_subdirectory(src/sign/dilithium/dilithium2/clean)
  173. add_subdirectory(src/sign/dilithium/dilithium3/clean)
  174. add_subdirectory(src/sign/dilithium/dilithium5/clean)
  175. add_subdirectory(src/sign/falcon)
  176. add_subdirectory(src/sign/rainbow/rainbowV-classic/clean)
  177. add_subdirectory(src/sign/rainbow/rainbowI-classic/clean)
  178. add_subdirectory(src/sign/rainbow/rainbowIII-classic/clean)
  179. add_subdirectory(src/sign/sphincs/sphincs-sha256-192f-simple/clean)
  180. add_subdirectory(src/sign/sphincs/sphincs-shake256-256f-simple/clean)
  181. add_subdirectory(src/sign/sphincs/sphincs-shake256-192f-robust/clean)
  182. add_subdirectory(src/sign/sphincs/sphincs-shake256-128f-simple/clean)
  183. add_subdirectory(src/sign/sphincs/sphincs-shake256-256s-simple/clean)
  184. add_subdirectory(src/sign/sphincs/sphincs-shake256-128s-simple/clean)
  185. add_subdirectory(src/sign/sphincs/sphincs-sha256-128f-robust/clean)
  186. add_subdirectory(src/sign/sphincs/sphincs-sha256-192s-robust/clean)
  187. add_subdirectory(src/sign/sphincs/sphincs-shake256-128f-robust/clean)
  188. add_subdirectory(src/sign/sphincs/sphincs-shake256-128s-robust/clean)
  189. add_subdirectory(src/sign/sphincs/sphincs-shake256-256s-robust/clean)
  190. add_subdirectory(src/sign/sphincs/sphincs-sha256-192s-simple/clean)
  191. add_subdirectory(src/sign/sphincs/sphincs-shake256-192s-simple/clean)
  192. add_subdirectory(src/sign/sphincs/sphincs-shake256-192s-robust/clean)
  193. add_subdirectory(src/sign/sphincs/sphincs-shake256-192f-simple/clean)
  194. add_subdirectory(src/sign/sphincs/sphincs-sha256-256s-simple/clean)
  195. add_subdirectory(src/sign/sphincs/sphincs-sha256-128s-simple/clean)
  196. add_subdirectory(src/sign/sphincs/sphincs-shake256-256f-robust/clean)
  197. add_subdirectory(src/sign/sphincs/sphincs-sha256-256f-robust/clean)
  198. add_subdirectory(src/sign/sphincs/sphincs-sha256-256f-simple/clean)
  199. add_subdirectory(src/sign/sphincs/sphincs-sha256-256s-robust/clean)
  200. add_subdirectory(src/sign/sphincs/sphincs-sha256-128s-robust/clean)
  201. add_subdirectory(src/sign/sphincs/sphincs-sha256-128f-simple/clean)
  202. add_subdirectory(src/sign/sphincs/sphincs-sha256-192f-robust/clean)
  203. add_subdirectory(src/kem/kyber/kyber512/clean)
  204. add_subdirectory(src/kem/kyber/kyber768/clean)
  205. add_subdirectory(src/kem/kyber/kyber1024/clean)
  206. add_subdirectory(src/kem/saber/lightsaber/clean)
  207. add_subdirectory(src/kem/saber/firesaber/clean)
  208. add_subdirectory(src/kem/saber/saber/clean)
  209. add_subdirectory(src/kem/frodo/frodokem640shake/clean)
  210. add_subdirectory(src/kem/frodo/frodokem976shake/clean)
  211. add_subdirectory(src/kem/frodo/frodokem1344shake/clean)
  212. add_subdirectory(src/kem/ntru/ntruhps4096821/clean)
  213. add_subdirectory(src/kem/ntru/ntruhps2048509/clean)
  214. add_subdirectory(src/kem/ntru/ntruhrss701/clean)
  215. add_subdirectory(src/kem/ntru/ntruhps2048677/clean)
  216. add_subdirectory(src/kem/ntru_prime/ntrulpr761/clean)
  217. add_subdirectory(src/kem/ntru_prime/ntrulpr653/clean)
  218. add_subdirectory(src/kem/ntru_prime/ntrulpr857/clean)
  219. add_subdirectory(src/kem/hqc/hqc-rmrs-128/clean)
  220. add_subdirectory(src/kem/hqc/hqc-rmrs-192/clean)
  221. add_subdirectory(src/kem/hqc/hqc-rmrs-256/clean)
  222. add_subdirectory(src/kem/sike)
  223. add_subdirectory(src/kem/mceliece/mceliece348864/clean)
  224. add_subdirectory(src/kem/mceliece/mceliece460896/clean)
  225. add_subdirectory(src/kem/mceliece/mceliece6688128/clean)
  226. add_subdirectory(src/kem/mceliece/mceliece6960119/clean)
  227. add_subdirectory(src/kem/mceliece/mceliece8192128/clean)
  228. add_subdirectory(src/kem/mceliece/mceliece348864f/clean)
  229. add_subdirectory(src/kem/mceliece/mceliece460896f/clean)
  230. add_subdirectory(src/kem/mceliece/mceliece6688128f/clean)
  231. add_subdirectory(src/kem/mceliece/mceliece6960119f/clean)
  232. add_subdirectory(src/kem/mceliece/mceliece8192128f/clean)
  233. # Hardware optimized targets
  234. if(${ARCH} STREQUAL "ARCH_x86_64")
  235. set(COMMON_EXTRA_SRC "src/common/keccak4x/KeccakP-1600-times4-SIMD256.c")
  236. # Sign
  237. add_subdirectory(src/sign/dilithium/dilithium2/avx2)
  238. add_subdirectory(src/sign/dilithium/dilithium3/avx2)
  239. add_subdirectory(src/sign/dilithium/dilithium5/avx2)
  240. add_subdirectory(src/sign/sphincs/sphincs-shake256-128s-simple/avx2)
  241. add_subdirectory(src/sign/sphincs/sphincs-shake256-128f-robust/avx2)
  242. add_subdirectory(src/sign/sphincs/sphincs-shake256-128s-robust/avx2)
  243. add_subdirectory(src/sign/sphincs/sphincs-shake256-128f-simple/avx2)
  244. add_subdirectory(src/sign/sphincs/sphincs-shake256-192s-simple/avx2)
  245. add_subdirectory(src/sign/sphincs/sphincs-shake256-192f-robust/avx2)
  246. add_subdirectory(src/sign/sphincs/sphincs-shake256-192s-robust/avx2)
  247. add_subdirectory(src/sign/sphincs/sphincs-shake256-192f-simple/avx2)
  248. add_subdirectory(src/sign/sphincs/sphincs-shake256-256f-robust/avx2)
  249. add_subdirectory(src/sign/sphincs/sphincs-shake256-256f-simple/avx2)
  250. add_subdirectory(src/sign/sphincs/sphincs-shake256-256s-simple/avx2)
  251. add_subdirectory(src/sign/sphincs/sphincs-shake256-256s-robust/avx2)
  252. add_subdirectory(src/sign/sphincs/sphincs-sha256-128f-robust/avx2)
  253. add_subdirectory(src/sign/sphincs/sphincs-sha256-128s-simple/avx2)
  254. add_subdirectory(src/sign/sphincs/sphincs-sha256-128s-robust/avx2)
  255. add_subdirectory(src/sign/sphincs/sphincs-sha256-128f-simple/avx2)
  256. add_subdirectory(src/sign/sphincs/sphincs-sha256-192s-simple/avx2)
  257. add_subdirectory(src/sign/sphincs/sphincs-sha256-192f-simple/avx2)
  258. add_subdirectory(src/sign/sphincs/sphincs-sha256-192s-robust/avx2)
  259. add_subdirectory(src/sign/sphincs/sphincs-sha256-192f-robust/avx2)
  260. add_subdirectory(src/sign/sphincs/sphincs-sha256-256s-simple/avx2)
  261. add_subdirectory(src/sign/sphincs/sphincs-sha256-256f-robust/avx2)
  262. add_subdirectory(src/sign/sphincs/sphincs-sha256-256f-simple/avx2)
  263. add_subdirectory(src/sign/sphincs/sphincs-sha256-256s-robust/avx2)
  264. # KEMs
  265. add_subdirectory(src/kem/kyber/kyber512/avx2)
  266. add_subdirectory(src/kem/kyber/kyber768/avx2)
  267. add_subdirectory(src/kem/kyber/kyber1024/avx2)
  268. add_subdirectory(src/kem/saber/lightsaber/avx2)
  269. add_subdirectory(src/kem/saber/firesaber/avx2)
  270. add_subdirectory(src/kem/saber/saber/avx2)
  271. add_subdirectory(src/kem/ntru/ntruhps4096821/avx2)
  272. add_subdirectory(src/kem/ntru/ntruhps2048509/avx2)
  273. add_subdirectory(src/kem/ntru/ntruhrss701/avx2)
  274. add_subdirectory(src/kem/ntru/ntruhps2048677/avx2)
  275. add_subdirectory(src/kem/ntru_prime/ntrulpr761/avx2)
  276. add_subdirectory(src/kem/ntru_prime/ntrulpr653/avx2)
  277. add_subdirectory(src/kem/ntru_prime/ntrulpr857/avx2)
  278. add_subdirectory(src/kem/hqc/hqc-rmrs-128/avx2)
  279. add_subdirectory(src/kem/hqc/hqc-rmrs-192/avx2)
  280. add_subdirectory(src/kem/hqc/hqc-rmrs-256/avx2)
  281. endif()
  282. # The rest of the library
  283. add_library(
  284. common
  285. OBJECT
  286. src/common/aes.c
  287. src/common/fips202.c
  288. src/common/sp800-185.c
  289. src/common/randombytes.c
  290. src/common/sha2.c
  291. src/common/nistseedexpander.c
  292. src/common/utils.c
  293. src/capi/pqapi.c
  294. ${COMMON_EXTRA_SRC})
  295. add_library(
  296. pqc
  297. SHARED
  298. )
  299. add_library(
  300. pqc_s
  301. STATIC
  302. )
  303. get_property(OBJ_LIBS GLOBAL PROPERTY obj_libs)
  304. target_link_libraries(
  305. pqc
  306. ${OBJ_LIBS}
  307. cpu_features
  308. common
  309. )
  310. target_link_libraries(
  311. pqc_s
  312. cpu_features
  313. common
  314. ${OBJ_LIBS}
  315. )
  316. SET(UT_SRC test/ut.cpp)
  317. if(CTGRIND OR CTSAN)
  318. SET(UT_SRC ${UT_SRC} test/ct.cpp)
  319. endif()
  320. add_executable(
  321. ut
  322. ${UT_SRC}
  323. )
  324. target_link_libraries(
  325. ut
  326. gtest
  327. gtest_main
  328. pqc_s
  329. ${CXXLIBS_FOR_MEMORY_SANITIZER})
  330. ExternalProject_Get_Property(gtest_project INSTALL_DIR)
  331. target_include_directories(
  332. ut PRIVATE
  333. ${CMAKE_SOURCE_DIR}
  334. ${INSTALL_DIR}/include)
  335. target_link_directories(
  336. ut
  337. PRIVATE
  338. ${INSTALL_DIR}/lib)
  339. # github CI requires that
  340. add_dependencies(ut gtest_project)
  341. if(NOT CMAKE_BUILD_TYPE_LOWER STREQUAL "debug")
  342. # settings below are required by benchmark library
  343. set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
  344. # Target for benchmark - it also builds gtest library
  345. set(BENCHMARK_ENABLE_GTEST_TESTS ON CACHE BOOL "Enable testing of the benchmark library." FORCE)
  346. set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Disable benchmark tests" FORCE)
  347. set(GOOGLETEST_PATH "${CMAKE_SOURCE_DIR}/3rd/gtest" CACHE PATH "Path to the gtest sources" FORCE)
  348. #if (NOT MACOSX)
  349. # set(BENCHMARK_ENABLE_LTO ON CACHE BOOL "Enable link time optim" FORCE)
  350. #endif()
  351. set(BENCHMARK_ENABLE_INSTALL OFF CACHE BOOL "" FORCE)
  352. set(BENCHMARK_ENABLE_EXCEPTIONS OFF CACHE BOOL "" FORCE)
  353. set(CMAKE_C_FLAGS "${EXTRA_CXX_FLAGS}")
  354. set(CMAKE_CXX_FLAGS "${EXTRA_CXX_FLAGS}")
  355. if (MEMSAN)
  356. set(BENCHMARK_USE_LIBCXX ON CACHE BOOL "" FORCE)
  357. # Since build requires C++20 it is safe to assume that std::regex is available.
  358. # It seems I need to force it as benchmark build doesn't work very well with libc++
  359. set(HAVE_STD_REGEX ON CACHE BOOL "OK" FORCE)
  360. endif()
  361. add_subdirectory(${CMAKE_SOURCE_DIR}/3rd/gbench)
  362. add_subdirectory(test/bench)
  363. endif()
  364. install(TARGETS pqc pqc_s
  365. PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE WORLD_READ WORLD_WRITE
  366. LIBRARY DESTINATION lib
  367. ARCHIVE DESTINATION lib)
  368. install(FILES
  369. ${QRS_PUBLIC_INC}
  370. DESTINATION include/pqc)