]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Allow GOST 2001 CMS decryption
authorDmitry Belyavskiy <beldmit@gmail.com>
Wed, 6 May 2020 17:45:02 +0000 (20:45 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 6 May 2020 17:45:02 +0000 (20:45 +0300)
gost_ameth.c

index de1cdcabff1edc6c9d0f26cf0e5900e12c7b94fe..478b52f89f5066e27c3b0097ee31e661b6fbc38e 100644 (file)
@@ -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;