All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Raymond Mao <raymond.mao@linaro.org>
Cc: u-boot@lists.denx.de, manish.pandey2@arm.com,
	"Stefan Bosch" <stefan_b@posteo.net>,
	"Mario Six" <mario.six@gdsys.cc>,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"Michal Simek" <michal.simek@amd.com>,
	"Tuomas Tynkkynen" <tuomas.tynkkynen@iki.fi>,
	"Simon Glass" <sjg@chromium.org>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Andrejs Cainikovs" <andrejs.cainikovs@toradex.com>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Sean Anderson" <seanga2@gmail.com>,
	"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
	"Sumit Garg" <sumit.garg@linaro.org>, "Andrew Davis" <afd@ti.com>,
	"Rasmus Villemoes" <rasmus.villemoes@prevas.dk>,
	"Jesse Taube" <mr.bossman075@gmail.com>,
	"Bryan Brattlof" <bb@ti.com>,
	"Leon M. Busch-George" <leon@georgemail.eu>,
	"Igor Opaniuk" <igor.opaniuk@gmail.com>,
	"Alper Nebi Yasak" <alpernebiyasak@gmail.com>,
	"AKASHI Takahiro" <akashi.tkhro@gmail.com>,
	"Mattijs Korpershoek" <mkorpershoek@baylibre.com>,
	"Alexander Gendin" <agendin@matrox.com>,
	"Jonathan Humphreys" <j-humphreys@ti.com>,
	"Bin Meng" <bmeng.cn@gmail.com>,
	"Anand Moon" <linux.amoon@gmail.com>,
	"Vincent Stehlé" <vincent.stehle@arm.com>,
	"Oleksandr Suvorov" <oleksandr.suvorov@foundries.io>
Subject: Re: [PATCH v6 08/28] mbedtls: Enable smaller implementation for SHA256/512
Date: Mon, 19 Aug 2024 15:03:15 -0600	[thread overview]
Message-ID: <20240819210315.GG1626301@bill-the-cat> (raw)
In-Reply-To: <20240816214436.1877263-9-raymond.mao@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]

On Fri, Aug 16, 2024 at 02:43:57PM -0700, Raymond Mao wrote:

> Smaller implementation for SHA256 and SHA512 helps to reduce the
> ROM footprint though it has a certain impact on performance.
> As a trade-off, enable it as a default config when MbedTLS is
> enabled can reduce the target size significantly with acceptable
> performace loss.
> 
> Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
> ---
> Changes in v6
> - Initial patch
> 
>  lib/mbedtls/Kconfig              | 24 ++++++++++++++++++++++++
>  lib/mbedtls/mbedtls_def_config.h |  6 ++++++
>  2 files changed, 30 insertions(+)
> 
> diff --git a/lib/mbedtls/Kconfig b/lib/mbedtls/Kconfig
> index 12f8c965f5a..0e22edf1b6c 100644
> --- a/lib/mbedtls/Kconfig
> +++ b/lib/mbedtls/Kconfig
> @@ -151,18 +151,42 @@ config SHA1_MBEDTLS
>  config SHA256_MBEDTLS
>  	bool "Enable SHA256 support with MbedTLS crypto library"
>  	depends on MBEDTLS_LIB_CRYPTO && SHA256
> +	select SHA256_SMALLER
>  	help
>  	  This option enables support of hashing using SHA256 algorithm
>  	  with MbedTLS crypto library.
>  
> +if SHA256_MBEDTLS
> +
> +config SHA256_SMALLER
> +	bool "Enable SHA256 smaller implementation with MbedTLS crypto library"
> +	depends on SHA256_MBEDTLS
> +	help
> +	  This option enables support of hashing using SHA256 algorithm
> +	  smaller implementation with MbedTLS crypto library.
> +
> +endif

For each of these, they shouldn't be select'd, they just need to depends
on the right option (SHA256_MBEDTLS, etc) and be default y.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2024-08-19 21:03 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-16 21:43 [PATCH v6 00/28] Integrate MbedTLS v3.6 LTS with U-Boot Raymond Mao
2024-08-16 21:43 ` [PATCH v6 01/28] CI: Exclude MbedTLS subtree for CONFIG checks Raymond Mao
2024-08-16 21:43 ` [PATCH v6 02/28] mbedtls: add mbedtls into the build system Raymond Mao
2024-08-28  8:30   ` Ilias Apalodimas
2024-08-16 21:43 ` [PATCH v6 03/28] lib: Adapt digest header files to MbedTLS Raymond Mao
2024-08-28  9:25   ` Ilias Apalodimas
2024-09-03 15:12     ` Raymond Mao
2024-08-16 21:43 ` [PATCH v6 04/28] md5: Remove md5 non-watchdog API Raymond Mao
2024-08-16 21:43 ` [PATCH v6 05/28] sha1: Remove sha1 " Raymond Mao
2024-08-16 21:43 ` [PATCH v6 06/28] mbedtls: add digest shim layer for MbedTLS Raymond Mao
2024-08-28 10:37   ` Ilias Apalodimas
2024-09-03 15:28     ` Raymond Mao
2024-09-06  7:56       ` Ilias Apalodimas
2024-08-16 21:43 ` [PATCH v6 07/28] hash: integrate hash on mbedtls Raymond Mao
2024-08-28  9:53   ` Ilias Apalodimas
2024-09-03 15:49     ` Raymond Mao
2024-08-29 15:01   ` Simon Glass
2024-08-30  9:36     ` Ilias Apalodimas
2024-09-01 20:09       ` Simon Glass
2024-09-13 15:04         ` Ilias Apalodimas
2024-09-16 15:42           ` Simon Glass
2024-09-17 13:01             ` Ilias Apalodimas
2024-09-19 14:10               ` Simon Glass
2024-09-16 16:45           ` Raymond Mao
2024-09-03 15:54       ` Raymond Mao
2024-09-06  7:36         ` Ilias Apalodimas
2024-09-06 14:00           ` Raymond Mao
2024-09-06 14:05             ` Ilias Apalodimas
2024-09-03 15:45     ` Raymond Mao
2024-08-16 21:43 ` [PATCH v6 08/28] mbedtls: Enable smaller implementation for SHA256/512 Raymond Mao
2024-08-19 21:03   ` Tom Rini [this message]
2024-08-16 21:43 ` [PATCH v6 09/28] mbedtls/external: support Microsoft Authentication Code Raymond Mao
2024-08-28  8:33   ` Ilias Apalodimas
2024-08-16 21:43 ` [PATCH v6 10/28] mbedtls/external: support PKCS9 Authenticate Attributes Raymond Mao
2024-08-28  8:53   ` Ilias Apalodimas
2024-08-16 21:44 ` [PATCH v6 11/28] mbedtls/external: support decoding multiple signer's cert Raymond Mao
2024-08-16 21:44 ` [PATCH v6 12/28] mbedtls/external: update MbedTLS PKCS7 test suites Raymond Mao
2024-08-28  8:33   ` Ilias Apalodimas
2024-08-16 21:44 ` [PATCH v6 13/28] public_key: move common functions to public key helper Raymond Mao
2024-08-16 21:44 ` [PATCH v6 14/28] x509: move common functions to x509 helper Raymond Mao
2024-08-16 21:44 ` [PATCH v6 15/28] pkcs7: move common functions to PKCS7 helper Raymond Mao
2024-08-16 21:44 ` [PATCH v6 16/28] mbedtls: add public key porting layer Raymond Mao
2024-08-28 10:27   ` Ilias Apalodimas
2024-08-16 21:44 ` [PATCH v6 17/28] lib/crypto: Adapt public_key header with MbedTLS Raymond Mao
2024-08-16 21:44 ` [PATCH v6 18/28] mbedtls: add X509 cert parser porting layer Raymond Mao
2024-08-16 21:44 ` [PATCH v6 19/28] lib/crypto: Adapt x509_cert_parser to MbedTLS Raymond Mao
2024-08-16 21:44 ` [PATCH v6 20/28] mbedtls: add PKCS7 parser porting layer Raymond Mao
2024-08-16 21:44 ` [PATCH v6 21/28] lib/crypto: Adapt PKCS7 parser to MbedTLS Raymond Mao
2024-08-16 21:44 ` [PATCH v6 22/28] mbedtls: add MSCode parser porting layer Raymond Mao
2024-08-28 10:16   ` Ilias Apalodimas
2024-08-28 10:16   ` Ilias Apalodimas
2024-08-16 21:44 ` [PATCH v6 23/28] lib/crypto: Adapt mscode_parser to MbedTLS Raymond Mao
2024-08-16 21:44 ` [PATCH v6 24/28] mbedtls: add RSA helper layer on MbedTLS Raymond Mao
2024-08-28 10:28   ` Ilias Apalodimas
2024-08-16 21:44 ` [PATCH v6 25/28] lib/rypto: Adapt rsa_helper to MbedTLS Raymond Mao
2024-08-16 21:44 ` [PATCH v6 26/28] asn1_decoder: add build options for ASN1 decoder Raymond Mao
2024-08-28  8:55   ` Ilias Apalodimas
2024-08-16 21:44 ` [PATCH v6 27/28] test: Remove ASN1 library test Raymond Mao
2024-08-16 21:44 ` [PATCH v6 28/28] configs: enable MbedTLS as default setting Raymond Mao
2024-08-28  8:54   ` Ilias Apalodimas
2024-08-17 15:58 ` [PATCH v6 00/28] Integrate MbedTLS v3.6 LTS with U-Boot Simon Glass
2024-09-03 14:59   ` Raymond Mao
2024-09-06  0:43     ` Simon Glass
2024-09-06 14:50       ` Raymond Mao
2024-09-06 15:27         ` Tom Rini
2024-09-06 17:20           ` Raymond Mao
2024-09-10 18:44         ` Simon Glass
2024-09-10 21:29           ` Raymond Mao
2024-09-04 12:48   ` Peter Robinson
2024-09-04 16:43     ` Tom Rini
2024-09-06  7:01       ` Ilias Apalodimas
2024-09-06  0:43     ` Simon Glass
2024-09-06  9:05       ` Peter Robinson
2024-08-19 21:04 ` Tom Rini
2024-09-03 15:03   ` Raymond Mao
2024-09-11 19:15     ` Raymond Mao
2024-08-20  0:28 ` Tom Rini
2024-08-20  0:29   ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240819210315.GG1626301@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=afd@ti.com \
    --cc=agendin@matrox.com \
    --cc=akashi.tkhro@gmail.com \
    --cc=alpernebiyasak@gmail.com \
    --cc=andrejs.cainikovs@toradex.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=bb@ti.com \
    --cc=bmeng.cn@gmail.com \
    --cc=igor.opaniuk@gmail.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=j-humphreys@ti.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=leon@georgemail.eu \
    --cc=linux.amoon@gmail.com \
    --cc=manish.pandey2@arm.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=mario.six@gdsys.cc \
    --cc=michal.simek@amd.com \
    --cc=mkorpershoek@baylibre.com \
    --cc=mr.bossman075@gmail.com \
    --cc=oleksandr.suvorov@foundries.io \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=raymond.mao@linaro.org \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=stefan_b@posteo.net \
    --cc=sumit.garg@linaro.org \
    --cc=tuomas.tynkkynen@iki.fi \
    --cc=u-boot@lists.denx.de \
    --cc=vincent.stehle@arm.com \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.