diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-14 10:33:03 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-16 07:07:27 +1000 |
commit | 62c3fed0cd52316259e4e2c0e5878bcfa69b38f9 (patch) | |
tree | 72dd00534999ea41ab76b23b3271a95c1222ac45 /providers | |
parent | 26aae51347465764c755f0985bd1ac85d3f734e6 (diff) |
Deprecate the low level RC5 functions
Use of the low level RC5 functions has been informally discouraged for a long
time. We now formally deprecate them.
Applications should instead use the EVP APIs, e.g. EVP_EncryptInit_ex,
EVP_EncryptUpdate, EVP_EncryptFinal_ex and the equivalently named decrypt
functions.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10834)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/ciphers/cipher_rc5.c | 6 | ||||
-rw-r--r-- | providers/implementations/ciphers/cipher_rc5_hw.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/providers/implementations/ciphers/cipher_rc5.c b/providers/implementations/ciphers/cipher_rc5.c index e2e1cb6a31..d6026c48f6 100644 --- a/providers/implementations/ciphers/cipher_rc5.c +++ b/providers/implementations/ciphers/cipher_rc5.c @@ -9,6 +9,12 @@ /* Dispatch functions for RC5 cipher modes ecb, cbc, ofb, cfb */ +/* + * RC5 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include "cipher_rc5.h" #include "prov/implementations.h" #include "prov/providercommonerr.h" diff --git a/providers/implementations/ciphers/cipher_rc5_hw.c b/providers/implementations/ciphers/cipher_rc5_hw.c index a9a05ba32f..5d858811fc 100644 --- a/providers/implementations/ciphers/cipher_rc5_hw.c +++ b/providers/implementations/ciphers/cipher_rc5_hw.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC5 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include "cipher_rc5.h" static int cipher_hw_rc5_initkey(PROV_CIPHER_CTX *ctx, |