From a6d572e60120e0ffb42aece17a085f0fed1b8f6f Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 14 Jan 2020 10:59:11 +1000 Subject: Deprecate the low level CMAC functions Use of the low level CMAC functions has been informally discouraged for a long time. We now formally deprecate them. Applications should instead use EVP_MAC_CTX_new(3), EVP_MAC_CTX_free(3), EVP_MAC_init(3), EVP_MAC_update(3) and EVP_MAC_final(3). Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/10836) --- crypto/cmac/cm_ameth.c | 6 ++++++ crypto/cmac/cmac.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'crypto/cmac') diff --git a/crypto/cmac/cm_ameth.c b/crypto/cmac/cm_ameth.c index 9db2562157..d46cf07fac 100644 --- a/crypto/cmac/cm_ameth.c +++ b/crypto/cmac/cm_ameth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * CMAC low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include #include "internal/cryptlib.h" #include diff --git a/crypto/cmac/cmac.c b/crypto/cmac/cmac.c index ec12970cb2..b10c29c267 100644 --- a/crypto/cmac/cmac.c +++ b/crypto/cmac/cmac.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * CMAC low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include #include #include -- cgit v1.2.3