Kconfig: FIT_SIGNATURE should not select RSA_VERIFY
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Thu, 29 Jul 2021 16:47:18 +0000 (11:47 -0500)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 16 Aug 2021 08:49:35 +0000 (10:49 +0200)
FIT signatures can now be implemented with ECDSA. The assumption that
all FIT images are signed with RSA is no longer valid. Thus, instead
of 'select'ing RSA, only 'imply' it. This doesn't change the defaults,
but allows one to explicitly disable RSA support.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
common/Kconfig.boot

index f39df04..0d4c384 100644 (file)
@@ -76,8 +76,8 @@ config FIT_SIGNATURE
        bool "Enable signature verification of FIT uImages"
        depends on DM
        select HASH
-       select RSA
-       select RSA_VERIFY
+       imply RSA
+       imply RSA_VERIFY
        select IMAGE_SIGN_INFO
        select FIT_FULL_CHECK
        help
@@ -186,8 +186,8 @@ config SPL_FIT_SIGNATURE
        select SPL_FIT
        select SPL_CRYPTO
        select SPL_HASH_SUPPORT
-       select SPL_RSA
-       select SPL_RSA_VERIFY
+       imply SPL_RSA
+       imply SPL_RSA_VERIFY
        select SPL_IMAGE_SIGN_INFO
        select SPL_FIT_FULL_CHECK