From: Dmitry Belyavskiy Date: Thu, 6 Sep 2018 15:22:44 +0000 (+0300) Subject: Temporary FIXME to make engine kuznyuechik-omac friendly. X-Git-Tag: v3.0.0~353 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=8268551dc4c25ce114c14e776cc0795f0ef0ec2c;p=openssl-gost%2Fengine.git Temporary FIXME to make engine kuznyuechik-omac friendly. --- diff --git a/gost_pmeth.c b/gost_pmeth.c index dd565a0..5c07200 100644 --- a/gost_pmeth.c +++ b/gost_pmeth.c @@ -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;