-$COMMON=cmac_prov.c gmac_prov.c hmac_prov.c kmac_prov.c
+$COMMON=gmac_prov.c hmac_prov.c kmac_prov.c
+
+IF[{- !$disabled{cmac} -}]
+ $COMMON=$COMMON cmac_prov.c
+ENDIF
LIBS=../../../libcrypto
SOURCE[../../../libcrypto]=$COMMON
* https://www.openssl.org/source/license.html
*/
-#include <openssl/opensslconf.h>
-#ifndef OPENSSL_NO_CMAC
+#include <openssl/core_numbers.h>
+#include <openssl/core_names.h>
+#include <openssl/params.h>
+#include <openssl/engine.h>
+#include <openssl/evp.h>
+#include <openssl/cmac.h>
-# include <openssl/core_numbers.h>
-# include <openssl/core_names.h>
-# include <openssl/params.h>
-# include <openssl/engine.h>
-# include <openssl/evp.h>
-# include <openssl/cmac.h>
-
-# include "internal/provider_algs.h"
-# include "internal/provider_ctx.h"
+#include "internal/provider_algs.h"
+#include "internal/provider_ctx.h"
/*
* Forward declaration of everything implemented here. This is not strictly
{ OSSL_FUNC_MAC_SET_CTX_PARAMS, (void (*)(void))cmac_set_ctx_params },
{ 0, NULL }
};
-
-#endif
};
static const OSSL_ALGORITHM fips_macs[] = {
+#ifndef OPENSSL_NO_CMAC
{ "CMAC", "fips=yes", cmac_functions },
+#endif
{ "GMAC", "fips=yes", gmac_functions },
{ "HMAC", "fips=yes", hmac_functions },
{ "KMAC128", "fips=yes", kmac128_functions },