Error out if the out secret wasn't properly initialized
authortb <tb@openbsd.org>
Fri, 14 Oct 2022 06:56:33 +0000 (06:56 +0000)
committertb <tb@openbsd.org>
Fri, 14 Oct 2022 06:56:33 +0000 (06:56 +0000)
commit21af0d4a4aea382cc464fbdade62f809252417b9
tree57c9b739cda201c21a97872fa4460bae00cc3125
parent2d49969fee3177d6feca82981621a75579bd03dd
Error out if the out secret wasn't properly initialized

Calling HKDF_expand() with a length of 0 happens to succeed due to a quirk
in the API inherited from BoringSSL.  This hides caller-side errors during
development.  Error out to catch such mistakes early on.

ok jsing
lib/libssl/tls13_key_schedule.c