Rewrite HKDF_expand().
authorjsing <jsing@openbsd.org>
Mon, 25 Mar 2024 13:09:13 +0000 (13:09 +0000)
committerjsing <jsing@openbsd.org>
Mon, 25 Mar 2024 13:09:13 +0000 (13:09 +0000)
commit3383911536e8b73bbe9001590b60f1791fc92a3d
tree31a50e0a7511e1cbea4fe9cdfd7fed8ed7e9529c
parent93ab69426ace0f2c718831e73925aa538b22c5b4
Rewrite HKDF_expand().

Simplify overflow checking and length tracking, use a CBB to handle output
and use HMAC_CTX_new() rather than having a HMAC_CTX on the stack.

ok tb@
lib/libcrypto/hkdf/hkdf.c