Tom Rini
d467f359c4
Merge patch series "Integrate MbedTLS v3.6 LTS with U-Boot"
...
Raymond Mao <raymond.mao@linaro.org > says:
Integrate MbedTLS v3.6 LTS (currently v3.6.0) with U-Boot.
Motivations:
------------
1. MbedTLS is well maintained with LTS versions.
2. LWIP is integrated with MbedTLS and easily to enable HTTPS.
3. MbedTLS recently switched license back to GPLv2.
Prerequisite:
-------------
This patch series requires mbedtls git repo to be added as a
subtree to the main U-Boot repo via:
$ git subtree add --prefix lib/mbedtls/external/mbedtls \
https://github.com/Mbed-TLS/mbedtls.git \
v3.6.0 --squash
Moreover, due to the Windows-style files from mbedtls git repo,
we need to convert the CRLF endings to LF and do a commit manually:
$ git add --renormalize .
$ git commit
New Kconfig options:
--------------------
`MBEDTLS_LIB` is for MbedTLS general switch.
`MBEDTLS_LIB_CRYPTO` is for replacing original digest and crypto libs with
MbedTLS.
`MBEDTLS_LIB_CRYPTO_ALT` is for using original U-Boot crypto libs as
MbedTLS crypto alternatives.
`MBEDTLS_LIB_X509` is for replacing original X509, PKCS7, MSCode, ASN1,
and Pubkey parser with MbedTLS.
By default `MBEDTLS_LIB_CRYPTO_ALT` and `MBEDTLS_LIB_X509` are selected
when `MBEDTLS_LIB` is enabled.
`LEGACY_CRYPTO` is introduced as a main switch for legacy crypto library.
`LEGACY_CRYPTO_BASIC` is for the basic crypto functionalities and
`LEGACY_CRYPTO_CERT` is for the certificate related functionalities.
For each of the algorithm, a pair of `<alg>_LEGACY` and `<alg>_MBEDTLS`
Kconfig options are introduced. Meanwhile, `SPL_` Kconfig options are
introduced.
In this patch set, MBEDTLS_LIB, MBEDTLS_LIB_CRYPTO and MBEDTLS_LIB_X509
are by default enabled in qemu_arm64_defconfig and sandbox_defconfig
for testing purpose.
Patches for external MbedTLS project:
-------------------------------------
Since U-Boot uses Microsoft Authentication Code to verify PE/COFFs
executables which is not supported by MbedTLS at the moment,
addtional patches for MbedTLS are created to adapt with the EFI loader:
1. Decoding of Microsoft Authentication Code.
2. Decoding of PKCS#9 Authenticate Attributes.
3. Extending MbedTLS PKCS#7 lib to support multiple signer's certificates.
4. MbedTLS native test suites for PKCS#7 signer's info.
All above 4 patches (tagged with `mbedtls/external`) are submitted to
MbedTLS project and being reviewed, eventually they should be part of
MbedTLS LTS release.
But before that, please merge them into U-Boot, otherwise the building
will be broken when MBEDTLS_LIB_X509 is enabled.
See below PR link for the reference:
https://github.com/Mbed-TLS/mbedtls/pull/9001
Miscellaneous:
--------------
Optimized MbedTLS library size by tailoring the config file
and disabling all unnecessary features for EFI loader.
From v2, original libs (rsa, asn1_decoder, rsa_helper, md5, sha1, sha256,
sha512) are completely replaced when MbedTLS is enabled.
From v3, the size-growth is slightly reduced by refactoring Hash functions.
From v6, smaller implementations for SHA256 and SHA512 are enabled and
target size reduce significantly.
Target(QEMU arm64) size-growth when enabling MbedTLS:
v1: 6.03%
v2: 4.66%
v3 - v5: 4.55%
v6: 2.90%
Tests done:
-----------
EFI Secure Boot test (EFI variables loading and verifying, EFI signed image
verifying and booting) via U-Boot console.
EFI Secure Boot and Capsule sandbox test passed.
Known issues:
-------------
None.
Link: https://lore.kernel.org/u-boot/20241003215112.3103601-1-raymond.mao@linaro.org/
2024-10-14 17:59:04 -06:00
..
2024-05-20 13:35:03 -06:00
2024-10-11 11:44:48 -06:00
2022-07-18 09:37:50 +01:00
2024-10-14 09:06:16 +02:00
2024-10-14 17:58:49 -06:00
2024-10-10 16:02:20 -06:00
2024-10-10 00:23:41 +01:00
2024-10-13 17:20:26 +03:00
2023-05-31 12:31:47 -04:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2023-11-07 14:49:40 -05:00
2024-10-14 17:59:04 -06:00
2023-10-15 12:23:48 +02:00
2024-10-11 11:44:48 -06:00
2022-01-20 14:46:03 +01:00
2024-07-29 15:01:04 -06:00
2024-10-10 12:17:46 -06:00
2022-01-19 18:11:34 +01:00
2023-10-16 15:46:18 +02:00
2022-10-30 20:07:16 +01:00
2024-07-26 01:28:11 +02:00
2022-01-19 18:11:34 +01:00
2022-09-29 16:07:57 -04:00
2024-08-26 18:51:49 -06:00
2024-10-14 17:58:31 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2022-09-24 10:47:01 -04:00
2023-08-25 13:54:33 -04:00
2024-05-20 13:35:03 -06:00
2022-07-26 02:30:56 -06:00
2023-11-07 18:36:06 -05:00
2024-09-03 14:08:49 -06:00
2024-05-20 13:35:03 -06:00
2023-04-04 14:50:47 -04:00
2024-05-20 13:35:03 -06:00
2023-08-08 10:22:03 -04:00
2023-08-08 10:22:03 -04:00
2022-04-08 09:05:19 -04:00
2024-07-29 15:01:04 -06:00
2024-10-03 09:08:29 -06:00
2023-12-21 08:54:37 -05:00
2022-07-21 10:14:04 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-02-15 10:38:34 +01:00
2024-05-20 13:35:03 -06:00
2022-01-30 01:25:00 +00:00
2023-04-28 01:30:24 +01:00
2023-04-28 01:30:24 +01:00
2022-01-30 01:25:00 +00:00
2023-04-28 01:30:24 +01:00
2023-04-28 01:30:24 +01:00
2024-07-15 00:17:27 +01:00
2022-01-19 18:11:34 +01:00
2024-06-13 16:30:48 -06:00
2023-04-28 11:30:17 -06:00
2022-01-19 18:11:34 +01:00
2022-08-12 08:14:23 -04:00
2024-08-23 15:58:42 -06:00
2024-07-29 15:01:04 -06:00
2024-07-18 07:40:30 -06:00
2024-05-20 13:35:03 -06:00
2024-08-26 14:05:38 -06:00
2022-01-19 18:11:34 +01:00
2024-10-11 11:44:48 -06:00
2024-10-03 11:52:16 -06:00
2024-07-18 13:51:30 -06:00
2024-04-18 08:29:35 -06:00
2024-06-24 13:34:52 -06:00
2022-01-19 18:11:34 +01:00
2024-08-15 14:35:31 -06:00
2024-05-20 13:35:03 -06:00
2022-07-21 10:14:04 +02:00
2024-02-13 15:38:49 -05:00
2024-07-29 15:01:04 -06:00
2023-10-24 16:34:45 -04:00
2023-11-02 22:38:01 -04:00
2024-05-20 13:35:03 -06:00
2024-03-21 06:56:13 +01:00
2023-12-28 12:02:56 -05:00
2023-10-11 15:43:54 -04:00
2024-01-29 22:35:02 -05:00
2024-08-01 15:33:19 -06:00
2021-12-27 16:20:18 -05:00
2024-01-16 17:05:29 -05:00
2022-01-19 18:11:34 +01:00
2024-10-11 11:44:48 -06:00
2022-12-05 16:06:08 -05:00
2022-07-05 17:04:15 -04:00
2024-09-18 13:01:00 -06:00
2024-03-21 06:56:13 +01:00
2024-03-21 06:56:13 +01:00
2023-11-10 11:01:50 -05:00
2022-01-19 18:11:34 +01:00
2024-08-02 15:16:51 -03:00
2022-04-06 14:01:42 -04:00
2022-01-19 18:11:34 +01:00
2024-07-31 16:51:54 +02:00
2024-05-20 13:35:03 -06:00
2024-10-01 10:55:09 +02:00
2023-11-07 14:50:51 -05:00
2024-05-20 13:35:03 -06:00
2021-09-30 09:08:16 -04:00
2022-10-18 13:40:40 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2021-09-25 09:46:15 -06:00
2024-07-29 15:01:04 -06:00
2024-04-02 09:08:07 +02:00
2024-04-02 09:08:07 +02:00
2024-08-19 16:09:06 +09:00
2022-12-05 16:06:07 -05:00
2024-07-29 15:01:04 -06:00
2022-01-19 18:11:34 +01:00
2024-06-07 10:47:59 -06:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2023-07-15 11:20:41 +02:00
2022-06-12 09:17:54 +02:00
2022-10-06 22:54:58 +02:00
2022-01-19 16:16:33 +01:00
2024-06-10 11:43:37 +02:00
2024-10-09 22:04:56 -06:00
2022-01-29 10:23:40 +01:00
2022-01-19 16:16:33 +01:00
2024-05-01 08:39:16 +02:00
2024-06-30 13:58:31 +02:00
2024-09-21 10:59:06 +02:00
2024-09-12 17:35:37 +02:00
2024-06-14 12:59:07 -06:00
2024-10-11 12:23:25 -06:00
2024-08-26 14:05:38 -06:00
2024-05-20 13:35:03 -06:00
2024-08-26 14:05:38 -06:00
2024-10-11 11:44:48 -06:00
2022-03-15 16:19:29 -04:00
2022-04-06 14:01:42 -04:00
2022-03-10 08:28:36 -05:00
2024-09-21 11:02:25 +02:00
2024-09-21 11:01:41 +02:00
2024-07-29 15:01:04 -06:00
2024-08-15 14:35:15 -06:00
2023-10-17 20:50:52 -04:00
2023-05-02 14:23:34 -04:00
2024-06-07 14:05:03 -06:00
2023-05-13 09:52:32 -04:00
2024-04-18 08:29:35 -06:00
2024-07-09 09:15:37 +02:00
2023-11-28 20:10:24 -05:00
2022-01-19 18:11:34 +01:00
2023-04-28 11:30:17 -06:00
2024-06-28 17:30:45 -06:00
2024-10-11 11:44:48 -06:00
2024-09-24 13:41:20 -06:00
2023-11-07 14:50:52 -05:00
2023-09-21 13:20:11 +02:00
2022-07-21 10:14:04 +02:00
2023-01-12 14:06:15 -05:00
2023-11-07 14:50:52 -05:00
2022-10-18 09:32:53 +08:00
2024-07-29 15:01:04 -06:00
2023-01-20 12:27:06 -05:00
2021-07-07 19:52:22 -04:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-10-04 09:15:15 -03:00
2022-04-26 17:18:39 +05:30
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2022-07-26 11:29:00 +02:00
2022-01-15 18:53:16 +02:00
2024-07-29 15:01:04 -06:00
2023-11-07 14:50:51 -05:00
2023-11-07 14:50:52 -05:00
2023-11-07 14:50:52 -05:00
2023-11-07 14:50:52 -05:00
2023-01-20 12:27:24 -05:00
2024-07-29 15:01:04 -06:00
2021-09-30 09:08:16 -04:00
2024-05-20 13:35:03 -06:00
2022-06-23 12:58:18 -04:00
2024-05-24 13:40:03 -06:00
2024-09-19 10:52:50 +03:00
2024-09-09 17:18:04 +02:00
2024-09-21 10:58:38 +02:00
2022-04-12 15:36:17 +02:00
2024-07-29 15:01:04 -06:00
2024-10-03 11:52:16 -06:00
2024-08-26 14:05:38 -06:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2024-04-08 13:04:48 +02:00
2022-01-19 18:11:34 +01:00
2024-01-24 11:12:11 -05:00
2024-05-20 13:35:03 -06:00
2024-08-13 06:23:15 +02:00
2022-01-19 18:11:34 +01:00
2021-08-30 14:13:28 -04:00
2023-04-27 13:51:06 -04:00
2024-10-11 11:44:48 -06:00
2023-07-25 12:44:46 -04:00
2024-09-03 14:09:30 -06:00
2024-08-13 08:28:24 -03:00
2024-04-05 09:39:18 -03:00
2023-07-13 11:29:40 +02:00
2024-02-08 09:01:22 -03:00
2024-05-20 13:35:03 -06:00
2023-09-14 10:42:24 -04:00
2022-01-19 18:11:34 +01:00
2023-11-02 16:22:06 +08:00
2023-12-21 11:59:49 -05:00
2022-04-19 14:52:34 -04:00
2024-10-11 11:44:48 -06:00
2023-08-19 04:12:53 +02:00
2023-11-10 11:01:50 -05:00
2024-06-19 12:07:44 -06:00
2022-04-04 19:02:04 -04:00
2024-06-19 12:07:44 -06:00
2024-07-29 15:01:04 -06:00
2022-01-18 08:31:02 -05:00
2024-10-10 16:02:20 -06:00
2024-05-20 13:35:03 -06:00
2022-10-30 20:07:17 +01:00
2024-10-14 17:58:12 -06:00
2023-04-04 12:24:29 -04:00
2024-09-20 17:38:16 -06:00
2024-10-11 11:44:47 -06:00
2022-01-19 18:11:34 +01:00
2024-05-20 13:35:03 -06:00
2024-07-29 15:01:04 -06:00
2024-01-07 13:45:07 -07:00
2023-04-07 14:21:37 +02:00
2024-07-29 15:01:04 -06:00
2024-04-12 16:23:06 -06:00
2023-12-21 08:54:37 -05:00
2024-01-09 14:58:33 +01:00
2023-10-11 15:43:55 -04:00
2024-07-29 15:01:04 -06:00
2023-11-07 14:50:52 -05:00
2022-01-24 10:35:10 -05:00
2023-08-08 10:22:03 -04:00
2024-10-11 12:23:25 -06:00
2024-07-29 15:01:04 -06:00
2023-11-07 14:50:51 -05:00
2024-05-20 13:35:03 -06:00
2022-01-12 14:21:24 -05:00
2021-09-28 12:03:20 -04:00
2023-11-10 11:01:50 -05:00
2023-11-10 11:01:50 -05:00
2024-07-29 15:01:04 -06:00
2022-12-05 16:06:08 -05:00
2022-10-09 10:42:26 +02:00
2024-07-29 15:01:04 -06:00
2023-05-05 17:58:52 -04:00
2023-12-21 08:54:37 -05:00
2024-10-11 11:44:48 -06:00
2024-05-20 13:35:03 -06:00
2023-10-06 14:38:13 -04:00
2024-01-24 11:12:11 -05:00
2023-08-30 17:56:21 -04:00
2023-10-06 14:38:13 -04:00
2023-06-20 16:08:13 -04:00
2024-09-30 17:48:12 -06:00
2022-01-19 18:11:34 +01:00
2023-11-07 14:50:52 -05:00
2022-01-19 18:11:34 +01:00
2023-08-25 17:55:19 -04:00
2024-10-11 11:44:48 -06:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2024-07-29 15:01:04 -06:00
2024-09-03 09:12:00 -06:00
2022-01-19 18:11:34 +01:00
2024-07-29 15:01:04 -06:00
2024-05-20 13:35:03 -06:00
2022-01-19 18:11:34 +01:00
2024-06-13 16:27:07 -06:00
2022-01-19 18:11:34 +01:00
2023-11-07 14:50:52 -05:00
2024-01-24 11:12:11 -05:00
2022-01-19 18:11:34 +01:00
2023-05-05 17:48:44 -04:00
2023-02-06 13:04:53 -05:00
2024-05-20 13:35:03 -06:00
2023-01-16 18:01:10 +08:00
2023-05-06 17:28:18 +08:00
2023-09-14 10:42:24 -04:00
2024-03-22 15:50:28 -04:00
2023-02-12 13:44:20 -05:00
2024-09-12 17:35:37 +02:00
2024-03-02 12:26:19 -05:00
2023-12-21 08:54:37 -05:00
2024-05-20 13:35:03 -06:00
2024-09-12 17:35:37 +02:00
2023-10-10 16:19:43 -04:00
2023-10-15 12:23:48 +02:00
2023-11-07 18:36:06 -05:00
2023-10-24 17:05:24 -04:00
2023-10-13 16:59:23 -04:00
2023-10-24 17:05:24 -04:00
2022-10-31 11:02:44 -04:00
2024-07-29 15:01:04 -06:00
2024-05-02 10:34:34 -06:00
2024-10-11 11:44:48 -06:00
2024-10-11 11:44:48 -06:00
2022-12-08 15:15:22 +08:00
2022-04-01 15:03:13 -04:00
2023-11-07 13:47:08 +01:00
2022-02-28 11:59:35 +05:30
2023-10-15 12:23:48 +02:00
2024-05-20 13:35:03 -06:00
2024-07-31 08:29:16 +02:00
2022-01-19 18:11:34 +01:00
2024-01-24 11:12:11 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2024-07-29 15:01:04 -06:00
2022-05-23 09:33:10 -04:00
2024-01-24 11:12:11 -05:00
2024-10-09 09:01:54 -06:00
2024-10-13 17:20:26 +03:00
2024-09-10 13:15:13 -06:00
2024-10-11 11:44:48 -06:00
2024-05-20 13:35:03 -06:00
2024-10-10 16:02:20 -06:00
2022-04-06 14:03:17 -04:00
2023-10-09 15:24:31 -04:00
2024-10-11 11:44:48 -06:00
2024-10-14 17:58:12 -06:00
2024-10-11 11:44:48 -06:00
2022-04-04 23:24:17 +01:00
2023-05-06 17:28:18 +08:00
2024-06-20 11:41:43 -06:00
2021-11-04 08:57:19 +01:00
2023-12-21 08:54:37 -05:00
2024-01-09 10:08:52 +01:00
2022-12-05 16:06:08 -05:00
2023-02-10 07:41:40 -05:00
2024-07-29 15:01:04 -06:00
2023-09-15 23:38:02 +02:00
2023-11-10 11:01:50 -05:00
2022-09-13 16:01:43 -04:00
2023-09-09 06:12:47 +02:00
2024-01-24 11:12:11 -05:00
2022-01-19 18:11:34 +01:00
2023-02-28 09:44:19 +02:00
2024-06-30 13:58:31 +02:00
2023-02-28 09:44:33 +02:00
2023-02-28 09:44:33 +02:00
2024-06-30 13:58:31 +02:00
2022-01-19 18:11:34 +01:00
2023-02-11 12:22:35 -05:00
2022-12-07 16:04:16 -05:00
2024-04-04 10:45:27 +02:00
2023-11-07 14:50:52 -05:00
2024-08-08 09:28:00 +02:00
2023-06-06 10:37:25 +02:00
2022-01-19 18:11:34 +01:00
2024-10-11 11:44:48 -06:00
2024-07-29 15:01:04 -06:00
2022-12-07 16:04:17 -05:00
2024-03-22 10:16:13 +01:00
2024-09-18 13:01:00 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-10-11 11:44:48 -06:00
2023-07-21 09:00:38 +02:00
2023-05-31 17:23:01 -04:00
2021-09-17 12:10:44 -04:00
2023-03-13 13:53:01 +01:00
2022-01-19 18:11:34 +01:00
2024-03-21 06:56:13 +01:00
2023-03-07 15:57:19 +01:00
2023-03-07 15:57:19 +01:00
2023-03-07 15:57:19 +01:00
2023-03-07 15:59:47 +01:00
2023-03-07 15:59:58 +01:00
2023-03-07 15:59:58 +01:00
2022-01-19 18:11:34 +01:00
2024-08-26 14:05:37 -06:00
2023-04-25 11:53:15 -04:00
2024-05-20 13:35:03 -06:00
2022-04-10 08:44:13 +03:00
2024-05-22 08:55:29 -06:00
2022-09-18 10:26:33 +02:00
2024-06-16 12:14:18 +02:00
2022-01-19 18:11:34 +01:00
2022-07-26 09:34:21 +02:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2023-09-21 13:20:10 +02:00
2023-07-21 09:00:38 +02:00
2024-08-05 16:13:26 +02:00