diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-14 10:59:11 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-29 19:49:22 +1000 |
commit | a6d572e60120e0ffb42aece17a085f0fed1b8f6f (patch) | |
tree | 28d21a69624c86df7b1293115e26639c232c4384 /crypto/cmac/cmac.c | |
parent | 70a7685a3282d0501ab10b1556296ab7973a852e (diff) | |
download | openssl-a6d572e60120e0ffb42aece17a085f0fed1b8f6f.zip openssl-a6d572e60120e0ffb42aece17a085f0fed1b8f6f.tar.gz openssl-a6d572e60120e0ffb42aece17a085f0fed1b8f6f.tar.bz2 |
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 <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10836)
Diffstat (limited to 'crypto/cmac/cmac.c')
-rw-r--r-- | crypto/cmac/cmac.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/cmac/cmac.c b/crypto/cmac/cmac.c index ec12970..b10c29c 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 <stdio.h> #include <stdlib.h> #include <string.h> |