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)
commit2bbed3ff8c7fa0c0fa3fd28a9497bf7a99e3388b
treefc0702f72792fb3114c8cc4fd2262f8f2ad115fd
parente059157f0d5737b63fe2f1fec145509d82508109
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