summaryrefslogtreecommitdiffstats
path: root/providers/legacyprov.c
diff options
context:
space:
mode:
authorJon Spillett <jon.spillett@oracle.com>2021-02-26 15:21:47 +1000
committerPauli <pauli@openssl.org>2021-05-24 15:21:25 +1000
commit0f183675b8ea2490ca5e0b4e66baa27a3e6478ba (patch)
tree50e289519dfd4ba6036ec70acc84d8f09d13c07e /providers/legacyprov.c
parentd136db212ecaeb65e399de8d6b30e8b5ecc044d9 (diff)
Add PBKDF1 to the legacy provider
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14326)
Diffstat (limited to 'providers/legacyprov.c')
-rw-r--r--providers/legacyprov.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/providers/legacyprov.c b/providers/legacyprov.c
index 1f137a721f..b5fc5f523f 100644
--- a/providers/legacyprov.c
+++ b/providers/legacyprov.c
@@ -143,6 +143,11 @@ static const OSSL_ALGORITHM legacy_ciphers[] = {
{ NULL, NULL, NULL }
};
+static const OSSL_ALGORITHM legacy_kdfs[] = {
+ ALG("PBKDF1", ossl_kdf_pbkdf1_functions),
+ { NULL, NULL, NULL }
+};
+
static const OSSL_ALGORITHM *legacy_query(void *provctx, int operation_id,
int *no_cache)
{
@@ -152,6 +157,8 @@ static const OSSL_ALGORITHM *legacy_query(void *provctx, int operation_id,
return legacy_digests;
case OSSL_OP_CIPHER:
return legacy_ciphers;
+ case OSSL_OP_KDF:
+ return legacy_kdfs;
}
return NULL;
}