Bug#1053533: mbedtls: enable MBEDTLS_NIST_KW_C

2023-10-12 Thread Andrea Pappacoda
On Thu, 05 Oct 2023 21:35:47 +0200 Jérôme Pouiller  
wrote:
> I have just noticed MBEDTLS_NIST_KW_C was not enabled (and obviously my
> project[1] depends on it).
> 
> I usually use the default config provided by mbedtls (which I believe
> enable all the possible options). Do you know if there is any reason to
> strip down this configuration?

Hi Jerome, thanks for your report.

We don't strip down mbedtls' configuration, we just use the default, which 
seems to not include NIST_KW_C. I haven't looked at this option in detail, but 
changing the config can, and probably will, break ABI. I've tried it before and 
it broke at least one package.

Hence we probably cannot enable this new option until we'll bump the SONAME, 
which isn't going to happen soon, probably.

I wish mbedtls were more modular so that we could enable new features without 
rebuilding the library, but unfortunately this isn't possible as far as I know.

We cannot enable all possible features either because it'd make mbedtls' attack 
surface way bigger for little benefit.

I'll look into this, but I probably won't be able to satisfy your request (for 
some time).

Bye!



Bug#1053533: mbedtls: enable MBEDTLS_NIST_KW_C

2023-10-05 Thread Jérôme Pouiller
Source: mbedtls
Severity: wishlist
X-Debbugs-Cc: phco...@silabs.com, jerome.pouil...@gmail.com

Hello,

I have just noticed MBEDTLS_NIST_KW_C was not enabled (and obviously my
project[1] depends on it).

I usually use the default config provided by mbedtls (which I believe
enable all the possible options). Do you know if there is any reason to
strip down this configuration?


[1] https://github.com/SiliconLabs/wisun-br-linux

-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'stable'), (300, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8), LANGUAGE=en_IE:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled