diff options
author | Pauli <pauli@openssl.org> | 2021-07-01 14:00:03 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-07-05 11:49:42 +1000 |
commit | 56cd5dc78b3cecd2c6cf98b0d235b126e82f0dd2 (patch) | |
tree | addd4696556cc87c8e06c73c73726d465ec5de8e /providers | |
parent | f40c5f2c53b9d5eec98993653c3d741b0226b697 (diff) |
provider: use #define for PBKDF1 algorithm name
This seems to be standard practice so bringing PBKDF1 into line.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15967)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/include/prov/names.h | 1 | ||||
-rw-r--r-- | providers/legacyprov.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/providers/implementations/include/prov/names.h b/providers/implementations/include/prov/names.h index fd39c0229e..5aec4a0934 100644 --- a/providers/implementations/include/prov/names.h +++ b/providers/implementations/include/prov/names.h @@ -250,6 +250,7 @@ #define PROV_NAMES_HKDF "HKDF" #define PROV_DESCS_HKDF_SIGN "OpenSSL HKDF via EVP_PKEY implementation" #define PROV_NAMES_SSKDF "SSKDF" +#define PROV_NAMES_PBKDF1 "PBKDF1" #define PROV_NAMES_PBKDF2 "PBKDF2:1.2.840.113549.1.5.12" #define PROV_NAMES_SSHKDF "SSHKDF" #define PROV_NAMES_X963KDF "X963KDF:X942KDF-CONCAT" diff --git a/providers/legacyprov.c b/providers/legacyprov.c index b5fc5f523f..a5999c5f8b 100644 --- a/providers/legacyprov.c +++ b/providers/legacyprov.c @@ -144,7 +144,7 @@ static const OSSL_ALGORITHM legacy_ciphers[] = { }; static const OSSL_ALGORITHM legacy_kdfs[] = { - ALG("PBKDF1", ossl_kdf_pbkdf1_functions), + ALG(PROV_NAMES_PBKDF1, ossl_kdf_pbkdf1_functions), { NULL, NULL, NULL } }; |