X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_md2012.c;h=5acb111d3f20a798acc8b87999111fbe576c4ec9;hb=refs%2Fheads%2Fmgm_impl;hp=5462dea84c6cf0dc869c155fb47ef0abc08178b6;hpb=eb01b80247de3fa3848d58d7f2816aff8f396630;p=openssl-gost%2Fengine.git diff --git a/gost_md2012.c b/gost_md2012.c index 5462dea..5acb111 100644 --- a/gost_md2012.c +++ b/gost_md2012.c @@ -9,7 +9,6 @@ * * **********************************************************************/ -#include "compat.h" #include #include "gosthash2012.h" @@ -38,9 +37,6 @@ EVP_MD *digest_gost2012_256(void) 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)) @@ -71,9 +67,6 @@ EVP_MD *digest_gost2012_512(void) 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))