providers/implementations/exchange/kdf_exch.c: Fix kdf_derive()
authorRichard Levitte <levitte@openssl.org>
Sat, 11 Jun 2022 05:40:40 +0000 (07:40 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 15 Jun 2022 13:20:36 +0000 (15:20 +0200)
commit0feb138fbeeec9ae09e63b212a0a6e345ed0dc30
tree2c06821ee0cc07ce6cc58efbb7ba583b136962d8
parentf68283c18eaf015e7500e59a6adf3dbb3ee74f59
providers/implementations/exchange/kdf_exch.c: Fix kdf_derive()

kdf_derive() calls EVP_KDF_derive(), but didn't do enough to adapt its input
buffer length arguments to fit the requirements to call EVP_KDF_derive().

Fixes #18517

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18533)

(cherry picked from commit e906eab8d863ac7bdadc671e8d0686fead88c4bf)
providers/implementations/exchange/kdf_exch.c