enable_testing()
-find_package(OpenSSL 1.0.2 REQUIRED)
+find_package(OpenSSL 1.1.1 REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})
if (CMAKE_C_COMPILER_ID MATCHES "Clang")
gost_keywrap.c
gost_keywrap.h
gost_lcl.h
- compat.h
gost_params.c
)
* OpenSSL 0.9.9 libraries required to compile and use *
* this code *
**********************************************************************/
-# include "compat.h"
# include <openssl/bn.h>
# include <openssl/evp.h>
# include <openssl/dsa.h>
EVP_MD *md;
if ((md = EVP_MD_meth_new(NID_id_GostR3411_94, NID_undef)) == NULL
-#if (OPENSSL_VERSION_NUMBER <= 0x10002100L)
- || !EVP_MD_meth_set_flags(md, EVP_MD_FLAG_PKEY_METHOD_SIGNATURE)
-#endif
|| !EVP_MD_meth_set_result_size(md, 32)
|| !EVP_MD_meth_set_input_blocksize(md, 32)
|| !EVP_MD_meth_set_app_datasize(md,
* *
**********************************************************************/
-#include "compat.h"
#include <openssl/evp.h>
#include "gosthash2012.h"
if ((md =
EVP_MD_meth_new(NID_id_GostR3411_2012_256, NID_undef)) == NULL
-#if (OPENSSL_VERSION_NUMBER <= 0x10002100L)
- || !EVP_MD_meth_set_flags(md, EVP_MD_FLAG_PKEY_METHOD_SIGNATURE)
-#endif
|| !EVP_MD_meth_set_result_size(md, 32)
|| !EVP_MD_meth_set_input_blocksize(md, 64)
|| !EVP_MD_meth_set_app_datasize(md, sizeof(gost2012_hash_ctx))
if ((md =
EVP_MD_meth_new(NID_id_GostR3411_2012_512, NID_undef)) == NULL
-#if (OPENSSL_VERSION_NUMBER <= 0x10002100L)
- || !EVP_MD_meth_set_flags(md, EVP_MD_FLAG_PKEY_METHOD_SIGNATURE)
-#endif
|| !EVP_MD_meth_set_result_size(md, 64)
|| !EVP_MD_meth_set_input_blocksize(md, 64)
|| !EVP_MD_meth_set_app_datasize(md, sizeof(gost2012_hash_ctx))