X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_prov.c;fp=gost_prov.c;h=0bbe71d4a8f2a0a31484f196887c8c16947d4e30;hb=011e15b1cee3283c4700c113211f53f4d777860f;hp=273703be0f5475febfc842296ed107b298dd3d6b;hpb=a803e98f99a990c0c291748fd33a3d057d6f77bf;p=openssl-gost%2Fengine.git diff --git a/gost_prov.c b/gost_prov.c index 273703b..0bbe71d 100644 --- a/gost_prov.c +++ b/gost_prov.c @@ -5,8 +5,7 @@ #include #include -#define GOST_PROV_VERSION_STR "3.0.0" -#define GOST_PROV_FULL_VERSION_STR "3.0.0" +#include "gost_prov.h" /* Functions provided by the core */ static OSSL_core_gettable_params_fn *c_gettable_params = NULL; @@ -30,7 +29,7 @@ static int gost_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]) OSSL_PARAM *p; p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_NAME); - if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, "GOST Provider")) + if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, GOST_PROV_NAME)) return 0; p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_VERSION); if (p != NULL && !OSSL_PARAM_set_utf8_ptr(p, GOST_PROV_VERSION_STR)) @@ -43,8 +42,7 @@ static int gost_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]) } static const OSSL_ALGORITHM gost_digests[] = { - { "md_gost94", "gost.legacy=yes", NULL }, /* FIXME */ - { "md_gost2012_256:streebog256", "gost.gost=yes", NULL }, + { "md_gost2012_256:streebog256", "gost.gost=yes", streebog256_funcs }, { "md_gost2012_512:streebog512", "gost.gost=yes", NULL }, { NULL, NULL, NULL }