pkcs12: check for zero length digest to avoid division by zero
authorPauli <pauli@openssl.org>
Tue, 17 Aug 2021 03:17:17 +0000 (13:17 +1000)
committerPauli <pauli@openssl.org>
Wed, 18 Aug 2021 06:14:42 +0000 (16:14 +1000)
commit9f81ef9c0b6f3f9b3a091c5c40af52fb3f8556e3
treea719b8990c312d4e5913da9adc5d1decc6cc2723
parent46ac83eaf30efb676d12583080216f354951e0ae
pkcs12: check for zero length digest to avoid division by zero

Fixes #16331

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/16332)
providers/implementations/kdfs/pkcs12kdf.c