aboutsummaryrefslogtreecommitdiff
path: root/gost_pmeth.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-06-15 12:39:47 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-06-15 12:39:47 +0300
commit37e242a6a246cbf51d0e7f16f11f122a8c2051eb (patch)
tree60931d2318fc4f64e576b25f1c419cfda2fbb8c3 /gost_pmeth.c
parent6ee305aa55f793269627735081a1133265e91bfb (diff)
downloadgost-engine-37e242a6a246cbf51d0e7f16f11f122a8c2051eb.zip
gost-engine-37e242a6a246cbf51d0e7f16f11f122a8c2051eb.tar.gz
gost-engine-37e242a6a246cbf51d0e7f16f11f122a8c2051eb.tar.bz2
Corrected MAC name
Redundant values removed
Diffstat (limited to 'gost_pmeth.c')
-rw-r--r--gost_pmeth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gost_pmeth.c b/gost_pmeth.c
index e615d01..5c7352b 100644
--- a/gost_pmeth.c
+++ b/gost_pmeth.c
@@ -556,8 +556,7 @@ static int pkey_gost_mac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
case EVP_PKEY_CTRL_MD:
{
int nid = EVP_MD_type((const EVP_MD *)p2);
- if (nid != NID_id_Gost28147_89_MAC && nid != NID_gost_mac_12
- && nid != NID_magma_mac && nid != NID_grasshopper_mac) {
+ if (nid != NID_id_Gost28147_89_MAC && nid != NID_gost_mac_12) {
GOSTerr(GOST_F_PKEY_GOST_MAC_CTRL,
GOST_R_INVALID_DIGEST_TYPE);
return 0;