From 28c690cb7dd80c15c9fa45df518c555c66ad67f8 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 14 Jan 2020 08:35:12 +1000 Subject: Deprecate the low level SEED functions Use of the low level SEED 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 (Merged from https://github.com/openssl/openssl/pull/10833) --- providers/implementations/ciphers/cipher_seed.c | 6 ++++++ providers/implementations/ciphers/cipher_seed_hw.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'providers') diff --git a/providers/implementations/ciphers/cipher_seed.c b/providers/implementations/ciphers/cipher_seed.c index ee90669fda..0c83482d4e 100644 --- a/providers/implementations/ciphers/cipher_seed.c +++ b/providers/implementations/ciphers/cipher_seed.c @@ -9,6 +9,12 @@ /* Dispatch functions for Seed cipher modes ecb, cbc, ofb, cfb */ +/* + * SEED low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "cipher_seed.h" #include "prov/implementations.h" diff --git a/providers/implementations/ciphers/cipher_seed_hw.c b/providers/implementations/ciphers/cipher_seed_hw.c index 3bd3323dc0..c7dee292ea 100644 --- a/providers/implementations/ciphers/cipher_seed_hw.c +++ b/providers/implementations/ciphers/cipher_seed_hw.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * SEED low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "cipher_seed.h" static int cipher_hw_seed_initkey(PROV_CIPHER_CTX *ctx, -- cgit v1.2.3