]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Corrected MAC name
authorDmitry Belyavskiy <beldmit@gmail.com>
Fri, 15 Jun 2018 09:39:47 +0000 (12:39 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 15 Jun 2018 09:39:47 +0000 (12:39 +0300)
Redundant values removed

gost_eng.c
gost_pmeth.c

index 0cef2faf00320f1edf20cbfc7efba370f667502b..ba67fda6181854d427a341546e9e2e62b0136a69 100644 (file)
@@ -214,10 +214,10 @@ static int bind_gost(ENGINE* e, const char* id) {
                              "GOST 28147-89 MAC with 2012 params"))
         goto end;
     if (!register_ameth_gost(NID_magma_mac, &ameth_magma_mac,
-                             "MAGMA-OMAC", "GOST R 34.13-2015 Magma MAC"))
+                             "MAGMA-MAC", "GOST R 34.13-2015 Magma MAC"))
         goto end;
     if (!register_ameth_gost(NID_grasshopper_mac, &ameth_grasshopper_mac,
-                             "GRASSHOPPER-OMAC", "GOST R 34.13-2015 Grasshopper MAC"))
+                             "GRASSHOPPER-MAC", "GOST R 34.13-2015 Grasshopper MAC"))
         goto end;
 
     if (!register_pmeth_gost(NID_id_GostR3410_2001, &pmeth_GostR3410_2001, 0))
index e615d012936c29bd4ec75319ae9a2a7473af9ff1..5c7352b338dd51d396f2ddf84ac01917db271913 100644 (file)
@@ -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;