aboutsummaryrefslogtreecommitdiff
path: root/gost_pmeth.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-09-06 18:22:44 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-09-06 18:22:44 +0300
commit8268551dc4c25ce114c14e776cc0795f0ef0ec2c (patch)
treed9640bbae5f6b83485041eee8f24bd7f3da93455 /gost_pmeth.c
parenta54af1d8031c66f55967fa9faf70b9c5ea96d9b8 (diff)
downloadgost-engine-8268551dc4c25ce114c14e776cc0795f0ef0ec2c.zip
gost-engine-8268551dc4c25ce114c14e776cc0795f0ef0ec2c.tar.gz
gost-engine-8268551dc4c25ce114c14e776cc0795f0ef0ec2c.tar.bz2
Temporary FIXME to make engine kuznyuechik-omac friendly.
Diffstat (limited to 'gost_pmeth.c')
-rw-r--r--gost_pmeth.c4
1 files changed, 3 insertions, 1 deletions
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;