]> git.baikalelectronics.ru Git - uboot.git/commit
image: Use Kconfig to enable FIT_RSASSA_PSS on host
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:23 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
commit68e41a1f79c12d951062dc05025f52a8f9ad4b06
treefc0702f72792fb3114c8cc4fd2262f8f2ad115fd
parent02831726352896fe12ade41251c519fa94827cd3
image: Use Kconfig to enable FIT_RSASSA_PSS on host

Add a host Kconfig for FIT_RSASSA_PSS. With this we can use
CONFIG_IS_ENABLED(FIT_RSASSA_PSS) directly in the host build, so drop the
forcing of this in the image.h header.

Drop the #ifdef around padding_pss_verify() too since it is not needed.
Use the compiler to check the config where possible, instead of the
preprocessor.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
include/image.h
include/u-boot/rsa.h
lib/rsa/rsa-sign.c
lib/rsa/rsa-verify.c
tools/Kconfig