diff options
author | Tom Rini <trini@konsulko.com> | 2021-08-30 10:01:43 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-30 10:01:43 -0400 |
commit | 1756f40225e803bc93a9905425dbfaa1abf1623d (patch) | |
tree | afee089c5d3e7a6839622493e8082378573f8c9d /arch | |
parent | b9cb74a5aa256fc34a1b2b9dd847a985b91f34f6 (diff) | |
parent | abe1e1c968bb4b5db29a1412bfd55d5d76ca0454 (diff) | |
download | u-boot-1756f40225e803bc93a9905425dbfaa1abf1623d.tar.gz |
Merge branch '2021-08-30-fix-hash-algos-in-spl'WIP/30Aug2021
Quoting Alex:
Simon and I recently worked on killing a bunch extra definitions.
One of the side-effects is that certain hash algorithms won't work in
SPL when used in the context of FIT verification.
For example, in FIT verification, CONFIG_IS_ENABLED(SHA256) is used
(good), but there is no corresponding CONFIG_SPL_SHA256 (bad). This
will always be false for SPL, hence certain "hash" algos are broken.
This series resolves the selection by replacing the broken selection
with hash_lookup_algo(), which does not have the aforementioned problem.
This at the very least allows 'algo = "sha256"' FIT nodes to work in
SPL.
This series does not attempt to add individual SHA/CRC/MD5 configs for
SPL. Hash algo selection for SPL has been problematic even before. This
series is meant as an emergency fix, so it does not attempt to tackle
general refactoring issues.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-socfpga/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig index f4791c1ebe..bddfd44427 100644 --- a/arch/arm/mach-socfpga/Kconfig +++ b/arch/arm/mach-socfpga/Kconfig @@ -11,7 +11,7 @@ config SOCFPGA_SECURE_VAB_AUTH depends on TARGET_SOCFPGA_AGILEX || TARGET_SOCFPGA_N5X select FIT_IMAGE_POST_PROCESS select SHA384 - select SHA512_ALGO + select SHA512 select SPL_FIT_IMAGE_POST_PROCESS help All images loaded from FIT will be authenticated by Secure Device |