]> git.baikalelectronics.ru Git - uboot.git/commit
lib: rsa: rsa-verify: also check that padding is not NULL
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 15 Oct 2021 09:28:47 +0000 (11:28 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 26 Oct 2021 19:26:45 +0000 (15:26 -0400)
commite01ea99e3dc75153e4792105e278010e9c1eba89
tree4fc25c39519712ed5cd16beb1ea31739b292c1f6
parentc44b0b9cd12e8a00891f2cd1c0048baf2559ca64
lib: rsa: rsa-verify: also check that padding is not NULL

This commit adds a check on the padding in the function rsa_verify_key
to avoid using a NULL pointer.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-verify.c