gost_grasshopper_precompiled.c
gost_grasshopper_cipher.h
gost_grasshopper_cipher.c
- gost_grasshopper_mac.h
- gost_grasshopper_mac.c
)
set(GOST_CORE_SOURCE_FILES
gost_keywrap.c
gost_keywrap.h
gost_lcl.h
+ compat.h
gost_params.c
)
set (GOST_OMAC_SOURCE_FILES
gost_omac.c
+ gost_omac_acpkm.c
)
set(GOST_LIB_SOURCE_FILES
gost_md2012.c
gost_pmeth.c
gost_omac.c
+ gost_omac_acpkm.c
)
add_executable(test_grasshopper test_grasshopper.c)
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
# install
-set(OPENSSL_ENGINES_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/engines-${OPENSSL_VERSION_MAJOR}_${OPENSSL_VERSION_MINOR})
+if (NOT OPENSSL_ENGINES_INSTALL_DIR)
+ set(OPENSSL_ENGINES_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/engines-${OPENSSL_VERSION_MAJOR}_${OPENSSL_VERSION_MINOR})
+endif()
set(OPENSSL_MAN_INSTALL_DIR ${CMAKE_INSTALL_MANDIR}/man1)
install(TARGETS gost_engine gostsum gost12sum EXPORT GostEngineConfig