Skip to content

[RFC] Restructuring and cleanup of mbedTLS configurations #6132

@pfalcon

Description

@pfalcon

Having submitted #6131, I see that there're more issues, so opening a more generic ticket to collect them and consider ways to address.

  1. Zephyr's mbedTLS configs live in ext/lib/crypto/mbedtls/configs/ , which is not the right location, because these are Zephyr's configs, not 3rd-party content (many configs start from 3rd-party/upstream samples, but they are usually modifies and are Zephyr's own config). This is an old issue, which was already raised IIRC.
  2. We don't have enough consistency among the configs, but should strive for that. For example, most systems Zephyr targets would have much larger ROM than RAM, and RAM being a scarce resource (especially with TLS usage) at all. So, MBEDTLS_AES_ROM_TABLES should be enabled by default. Currently, only 3 of 5 configs define it (but one of them twice). To achieve manageable consistency for this, we apparently need to introduce multi-level configs, e.g. introduce config-zephyr-common.h which other "leaf" configs would include.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions