Change HKDF to alloc the info buffer.
authorslontis <shane.lontis@oracle.com>
Fri, 16 Dec 2022 02:26:44 +0000 (12:26 +1000)
committerTomas Mraz <tomas@openssl.org>
Thu, 22 Dec 2022 11:25:04 +0000 (12:25 +0100)
commite8115bd1654d5cd7718109679b2047ca573083a8
treef0f1df9070e2de5e6b697c902766bd38befd9076
parent624efd2ba6f1dabdcdecf17c77bd206c421efdaf
Change HKDF to alloc the info buffer.

Fixes #19909

I have enforced a maximum bound still but it is much higher.
Note also that TLS13 still uses the 2048 buffer size.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19923)
providers/implementations/kdfs/hkdf.c
test/recipes/30-test_evp_data/evpkdf_hkdf.txt