lib: Kconfig: k3: Enable SHA512 for fit signature
authorManorit Chawdhry <m-chawdhry@ti.com>
Fri, 14 Jul 2023 05:52:39 +0000 (11:22 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 22 Jul 2023 02:07:46 +0000 (22:07 -0400)
We are using our custMpk for signing that is a 4096 bit key, 4096 bit
rsa key requires a SHA512 hashing algorithm to be enabled as per the
source. Even though it is not mandated but this is how it works and is
tested.

Enables SHA512 if fit signature is enabled on K3 platforms.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
lib/Kconfig

index c8b3ec1..3926652 100644 (file)
@@ -508,6 +508,7 @@ config SHA256
 
 config SHA512
        bool "Enable SHA512 support"
+       default y if TI_SECURE_DEVICE && FIT_SIGNATURE
        help
          This option enables support of hashing using SHA512 algorithm.
          The hash is calculated in software.