From a2ecd9682b076731befba14f8ac02ba97db99451 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Wed, 6 May 2020 20:45:02 +0300 Subject: [PATCH 1/1] Allow GOST 2001 CMS decryption --- gost_ameth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gost_ameth.c b/gost_ameth.c index de1cdca..478b52f 100644 --- a/gost_ameth.c +++ b/gost_ameth.c @@ -340,6 +340,8 @@ static int gost_cms_set_ktri_shared_info(EVP_PKEY_CTX *pctx, CMS_RecipientInfo * gctx->cipher_nid = NID_magma_ctr; break; + case NID_id_GostR3410_2001: + case NID_id_GostR3410_2001DH: case NID_id_GostR3410_2012_256: case NID_id_GostR3410_2012_512: gctx->cipher_nid = NID_id_Gost28147_89; -- 2.39.2