diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-14 12:11:50 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-29 19:49:23 +1000 |
commit | dbde4726889a19af0a718fe9c5542f39c81acbd3 (patch) | |
tree | 371afa179289e0ba48e5a5c99520b139fd0f325f /providers | |
parent | fd4d283e7527cb711a4ff42d5ddcbc40828077f5 (diff) | |
download | openssl-dbde4726889a19af0a718fe9c5542f39c81acbd3.zip openssl-dbde4726889a19af0a718fe9c5542f39c81acbd3.tar.gz openssl-dbde4726889a19af0a718fe9c5542f39c81acbd3.tar.bz2 |
Deprecate the low level HMAC functions
Use of the low level HMAC 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 'providers')
-rw-r--r-- | providers/implementations/kdfs/hkdf.c | 6 | ||||
-rw-r--r-- | providers/implementations/kdfs/pbkdf2.c | 6 | ||||
-rw-r--r-- | providers/implementations/macs/hmac_prov.c | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/providers/implementations/kdfs/hkdf.c b/providers/implementations/kdfs/hkdf.c index d9f53a6..a8f4bf9 100644 --- a/providers/implementations/kdfs/hkdf.c +++ b/providers/implementations/kdfs/hkdf.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * HMAC low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <stdlib.h> #include <stdarg.h> #include <string.h> diff --git a/providers/implementations/kdfs/pbkdf2.c b/providers/implementations/kdfs/pbkdf2.c index 077b93a..d6fe07e 100644 --- a/providers/implementations/kdfs/pbkdf2.c +++ b/providers/implementations/kdfs/pbkdf2.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * HMAC low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <stdlib.h> #include <stdarg.h> #include <string.h> diff --git a/providers/implementations/macs/hmac_prov.c b/providers/implementations/macs/hmac_prov.c index 3eccc0d..2bddb64 100644 --- a/providers/implementations/macs/hmac_prov.c +++ b/providers/implementations/macs/hmac_prov.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * HMAC low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <openssl/core_numbers.h> #include <openssl/core_names.h> #include <openssl/params.h> |