Fix SSKDF to not claim a buffer size that is too small for the MAC
authorMatt Caswell <matt@openssl.org>
Thu, 7 Oct 2021 13:14:52 +0000 (14:14 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 22 Oct 2021 07:44:59 +0000 (08:44 +0100)
commit55398b354f55955a1f504f591b8cf64a559a5793
tree00fd9abdd124c388c3c6422337a2e374eba5f229
parent4fffef3dedcb80d2bfa657d4b7c2850dddaef1b4
Fix SSKDF to not claim a buffer size that is too small for the MAC

We also check that our buffer is sufficiently sized for the MAC output

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

(cherry picked from commit 7be8ba546267787c1b0df8a4fddaf9cb29944cbb)
providers/implementations/kdfs/sskdf.c