From a6aa8f79d4887dba5e79835327c36aad98b7a1d4 Mon Sep 17 00:00:00 2001 From: alashkova Date: Fri, 24 Jan 2025 10:41:21 +0300 Subject: [PATCH] =?UTF-8?q?SUPPORT-8883.=20=D0=98=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=80=D0=B8=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B5=20=D1=81=20CryptoPro=20KC2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/cryptopro.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/cryptopro.c b/src/utils/cryptopro.c index 0ade3aa..1187c3b 100644 --- a/src/utils/cryptopro.c +++ b/src/utils/cryptopro.c @@ -617,8 +617,8 @@ cryptopro_verify(const str_t* cert_thumbprint, const str_t* alg, const str_t* da goto exit; } - if (!cp_function_list.CryptAcquireContext(&hCryptProv, NULL, CP_KC1_GR3410_2001_PROV, - PROV_GOST_2001_DH, CRYPT_VERIFYCONTEXT)) { + if (!cp_function_list.CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_GOST_2012_256, + CRYPT_VERIFYCONTEXT)) { LOG_ERROR("CryptAcquireContext() failed"); goto exit; } @@ -704,8 +704,8 @@ cryptopro_gen_random(unsigned char* data, size_t len) LOG_TRACE("cryptopro_gen_random enter"); - if (!cp_function_list.CryptAcquireContext(&hCryptProv, NULL, CP_KC1_GR3410_2001_PROV, - PROV_GOST_2001_DH, CRYPT_VERIFYCONTEXT)) { + if (!cp_function_list.CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_GOST_2012_256, + CRYPT_VERIFYCONTEXT)) { LOG_ERROR("CryptAcquireContext() failed"); goto error; }