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:43:27 +0000 (08:43 +0100)
commit7be8ba546267787c1b0df8a4fddaf9cb29944cbb
tree58b4a5722135cf9e6896be163d3d0e009f0d2333
parentb97f4dd73b4711eebf731ae0efa6e9b77c7f3304
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)
providers/implementations/kdfs/sskdf.c