]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix bug in scrypt KDF provider dup method
authorHugo Landau <hlandau@openssl.org>
Fri, 11 Mar 2022 14:02:39 +0000 (14:02 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 14 Mar 2022 09:14:44 +0000 (10:14 +0100)
commite04c2c02e8e6b9ec71d93c26c14167ceb2165ce8
tree944a3d90e4bd1bae62b160d9b45c221834e655a2
parent4413fe3520da3ad42c417828b1785eeedcde50d3
Fix bug in scrypt KDF provider dup method

The scrypt KDF provider's dup method calls kdf_scrypt_new passing a
libctx, but a provider context is expected. Since the provider context
is passed as void *, this was not caught.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17873)
providers/implementations/kdfs/scrypt.c