]> git.ipfire.org Git - thirdparty/u-boot.git/commit
boot: fix incorrect dependency of FIT_RSASSA_PSS
authorQuentin Schulz <quentin.schulz@cherry.de>
Fri, 31 Oct 2025 17:08:20 +0000 (18:08 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 11 Nov 2025 20:53:25 +0000 (14:53 -0600)
commit63686bf6e02b57a259e6e08d6439a7d1e154f5cc
treeb964cc8112bede131a82f742baeb4eb76ee76078
parente34d01d23e45e007368685ffa6dfd674b6dd7b17
boot: fix incorrect dependency of FIT_RSASSA_PSS

This padding has nothing to do with FIT except that we can make use of
it when verifying the FIT signatures.

This padding can also be used to verify the signature "manually" e.g. by
calling rsa_verify_hash() directly with an embedded public key.

Additionally, this padding is only useful if RSA (and specifically
RSA_VERIFY) is enabled otherwise it's not used.
The only other place it's used is in rsa-sign.c which is only built for
the host tools and handled by TOOLS_FIT_RSASSA_PSS symbol instead, so no
need to care for that one.

Finally, the FIT_SIGNATURE dependency also wasn't enough because it only
implies RSA_VERIFY, meaning it can be disabled and still have
FIT_RSASSA_PSS enabled.

So add a dependency on RSA_VERIFY and reword the input prompt.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
boot/Kconfig