Commit e74a435f authored by Richard Levitte's avatar Richard Levitte
Browse files

EVP_MAC: Integrate CMAC EVP_PKEY_METHOD into generic MAC EVP_PKEY_METHOD

parent f71faf27
Loading
Loading
Loading
Loading
+1 −1
Changes for crypto/cmac/build.info: 1 added line, 1 removed line.
Original line number Diff line number Diff line
LIBS=../../libcrypto
SOURCE[../../libcrypto]=cmac.c cm_ameth.c cm_pmeth.c cm_meth.c
SOURCE[../../libcrypto]=cmac.c cm_ameth.c cm_meth.c
−161

File deleted.

+2 −9
Changes for crypto/evp/pkey_mac.c: 2 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -327,15 +327,8 @@ static int pkey_mac_ctrl_str(EVP_PKEY_CTX *ctx,
    return EVP_MAC_ctrl_str(hctx->ctx, type, value);
}

/*
 * When this is actually used, the following will be replaced with real
 * EVP_PKEY_METHODs, all exactly the same apart from the type and possibly
 * the flags.
 */

extern const EVP_PKEY_METHOD FAKE_pkey_meth;
const EVP_PKEY_METHOD FAKE_pkey_meth = {
    20870442 /* EVP_PKEY_FAKE, a beast times 31337 (you do the math) */,
const EVP_PKEY_METHOD cmac_pkey_meth = {
    EVP_PKEY_CMAC,
    EVP_PKEY_FLAG_SIGCTX_CUSTOM,
    pkey_mac_init,
    pkey_mac_copy,