Skip to content

Commit 56cd5dc

Browse files
committed
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 openssl#15967)
1 parent f40c5f2 commit 56cd5dc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

providers/implementations/include/prov/names.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@
250250
#define PROV_NAMES_HKDF "HKDF"
251251
#define PROV_DESCS_HKDF_SIGN "OpenSSL HKDF via EVP_PKEY implementation"
252252
#define PROV_NAMES_SSKDF "SSKDF"
253+
#define PROV_NAMES_PBKDF1 "PBKDF1"
253254
#define PROV_NAMES_PBKDF2 "PBKDF2:1.2.840.113549.1.5.12"
254255
#define PROV_NAMES_SSHKDF "SSHKDF"
255256
#define PROV_NAMES_X963KDF "X963KDF:X942KDF-CONCAT"

providers/legacyprov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static const OSSL_ALGORITHM legacy_ciphers[] = {
144144
};
145145

146146
static const OSSL_ALGORITHM legacy_kdfs[] = {
147-
ALG("PBKDF1", ossl_kdf_pbkdf1_functions),
147+
ALG(PROV_NAMES_PBKDF1, ossl_kdf_pbkdf1_functions),
148148
{ NULL, NULL, NULL }
149149
};
150150

0 commit comments

Comments
 (0)