]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Temporary FIXME to make engine kuznyuechik-omac friendly.
authorDmitry Belyavskiy <beldmit@gmail.com>
Thu, 6 Sep 2018 15:22:44 +0000 (18:22 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Thu, 6 Sep 2018 15:22:44 +0000 (18:22 +0300)
gost_pmeth.c

index dd565a0f23e717fa04fb3c3808ce561d54e76782..5c07200fb6b3866c7ec7eb6d789ec392f312735b 100644 (file)
@@ -697,7 +697,9 @@ static int pkey_gost_omac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2, si
     case EVP_PKEY_CTRL_MD:
         {
             int nid = EVP_MD_type((const EVP_MD *)p2);
-            if (nid != NID_magma_mac && nid != NID_grasshopper_mac) {
+            if (nid != NID_magma_mac && nid != NID_grasshopper_mac
+                && nid != NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac /* FIXME beldmit */
+                && nid != NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac) {
                 GOSTerr(GOST_F_PKEY_GOST_OMAC_CTRL,
                         GOST_R_INVALID_DIGEST_TYPE);
                 return 0;