diff options
| author | Lionel Debieve <lionel.debieve@foss.st.com> | 2022-10-05 16:22:07 +0200 |
|---|---|---|
| committer | Lionel Debieve <lionel.debieve@foss.st.com> | 2022-11-14 11:25:01 +0100 |
| commit | 87dfbd711259aa92572395607065fef9e14bd240 (patch) | |
| tree | a401e0590a6ebb82b40ba56837b1f6a3d17ad250 /drivers | |
| parent | 381f465ca92f7c9759e85c1bfb4c95ceda26581e (diff) | |
| download | arm-trusted-firmware-87dfbd711259aa92572395607065fef9e14bd240.tar.gz | |
refactor(stm32mp1): remove authentication using STM32 image mode
Remove deprecated authentication mode to use the FIP authentication
based on TBBR requirements. It will use the new crypto library.
Change-Id: I95c7baa64ba42c370ae136f59781f2a7a4c7f507
Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/st/io/io_stm32image.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/st/io/io_stm32image.c b/drivers/st/io/io_stm32image.c index 9fa0c50fd..c33a2fe19 100644 --- a/drivers/st/io/io_stm32image.c +++ b/drivers/st/io/io_stm32image.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2022, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -333,19 +333,6 @@ static int stm32image_partition_read(io_entity_t *entity, uintptr_t buffer, continue; } - result = stm32mp_check_header(header, buffer); - if (result != 0) { - ERROR("Header check failed\n"); - *length_read = 0; - header->magic = 0; - } - - result = stm32mp_auth_image(header, buffer); - if (result != 0) { - ERROR("Authentication Failed (%i)\n", result); - return result; - } - inv_dcache_range(round_up((uintptr_t)(local_buffer + length - hdr_sz), CACHE_WRITEBACK_GRANULE), *length_read - length + hdr_sz); |
