NID_grasshopper_ofb,
NID_grasshopper_ctr,
NID_magma_cbc,
+ NID_magma_ctr,
0
};
"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))
|| !EVP_add_cipher(cipher_gost_grasshopper_ofb())
|| !EVP_add_cipher(cipher_gost_grasshopper_ctr())
|| !EVP_add_cipher(cipher_magma_cbc())
+ || !EVP_add_cipher(cipher_magma_ctr())
|| !EVP_add_digest(digest_gost())
|| !EVP_add_digest(digest_gost2012_512())
|| !EVP_add_digest(digest_gost2012_256())
|| !EVP_add_digest(imit_gost_cpa())
|| !EVP_add_digest(imit_gost_cp_12())
+ || !EVP_add_digest(magma_omac())
+ || !EVP_add_digest(grasshopper_omac())
) {
goto end;
}
*cipher = cipher_gost_grasshopper_ctr();
} else if (nid == NID_magma_cbc) {
*cipher = cipher_magma_cbc();
+ } else if (nid == NID_magma_ctr) {
+ *cipher = cipher_magma_ctr();
} else {
ok = 0;
*cipher = NULL;