From 8268551dc4c25ce114c14e776cc0795f0ef0ec2c Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Thu, 6 Sep 2018 18:22:44 +0300 Subject: [PATCH] Temporary FIXME to make engine kuznyuechik-omac friendly. --- gost_pmeth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5