diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-08 15:13:11 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-12 12:05:04 +1000 |
commit | 7c3aa39fe38a70450b5bf3665ca48be80c5ff287 (patch) | |
tree | 5ee022ba2334c7078908237ed36259e2fd49bf95 /crypto/whrlpool | |
parent | c52ec197aae43e624702a79cdbb73a1d2c7c9d09 (diff) | |
download | openssl-new-7c3aa39fe38a70450b5bf3665ca48be80c5ff287.tar.gz |
Deprecate the low level Whirlpool functions.
Use of the low level Whirlpool functions has been informally discouraged for a
long time. We now formally deprecate them.
Applications should instead use the EVP APIs, e.g. EVP_Digest,
EVP_DigestInit_ex, EVP_DigestUpdate and EVP_DigestFinal_ex.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10779)
Diffstat (limited to 'crypto/whrlpool')
-rw-r--r-- | crypto/whrlpool/wp_block.c | 6 | ||||
-rw-r--r-- | crypto/whrlpool/wp_dgst.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/crypto/whrlpool/wp_block.c b/crypto/whrlpool/wp_block.c index c24f6733b0..46fe0d5736 100644 --- a/crypto/whrlpool/wp_block.c +++ b/crypto/whrlpool/wp_block.c @@ -36,6 +36,12 @@ * */ +/* + * Whirlpool low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/cryptlib.h" #include "wp_local.h" #include <string.h> diff --git a/crypto/whrlpool/wp_dgst.c b/crypto/whrlpool/wp_dgst.c index 3a4a80931d..3b8232dc0b 100644 --- a/crypto/whrlpool/wp_dgst.c +++ b/crypto/whrlpool/wp_dgst.c @@ -52,6 +52,12 @@ * input. This is done for performance. */ +/* + * Whirlpool low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/crypto.h> #include "wp_local.h" #include <string.h> |