summaryrefslogtreecommitdiff
path: root/providers/implementations/kdfs/pbkdf2.c
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-03-10 18:28:35 +1000
committerPauli <ppzgs1@gmail.com>2021-03-12 08:27:21 +1000
commitc983a0e5214db7f0a668f5e9ddda9362ca0d6ac9 (patch)
tree3fe9b004c176e5c64300993dbbc0092274798d98 /providers/implementations/kdfs/pbkdf2.c
parentf59612fed8def965c61cdb002fa20f61943f50a0 (diff)
downloadopenssl-new-c983a0e5214db7f0a668f5e9ddda9362ca0d6ac9.tar.gz
prov: add extra params argument to KDF implementations
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14383)
Diffstat (limited to 'providers/implementations/kdfs/pbkdf2.c')
-rw-r--r--providers/implementations/kdfs/pbkdf2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/implementations/kdfs/pbkdf2.c b/providers/implementations/kdfs/pbkdf2.c
index ce27fe9b39..eb7b15de59 100644
--- a/providers/implementations/kdfs/pbkdf2.c
+++ b/providers/implementations/kdfs/pbkdf2.c
@@ -172,6 +172,9 @@ static int kdf_pbkdf2_set_ctx_params(void *vctx, const OSSL_PARAM params[])
int pkcs5;
uint64_t iter, min_iter;
+ if (params == NULL)
+ return 1;
+
if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx))
return 0;