]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add HKDF negative tests
authorShane Lontis <shane.lontis@oracle.com>
Fri, 2 Jul 2021 04:26:07 +0000 (14:26 +1000)
committerPauli <pauli@openssl.org>
Tue, 6 Jul 2021 00:56:19 +0000 (10:56 +1000)
commit9d300aa21b02f13d3429931417f4320350b9f891
treef4446118bf9d86a96a1f9852a9ab73436eb80d81
parent866376432bc403adbdb447830d0a33ffcd5fb0fa
Add HKDF negative tests

Fix memory leak if legacy test is skipped.
Using EVP_KDF_CTX_get_params() to get OSSL_KDF_PARAM_SIZE will now
return 0 if the returned size is 0.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15977)
providers/implementations/kdfs/hkdf.c
test/evp_kdf_test.c
test/recipes/30-test_evp_data/evpkdf_hkdf.txt