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; }