Skip to content

Mbedtls 4 support (and esp-idf 6)#2174

Draft
petermm wants to merge 10 commits intoatomvm:mainfrom
petermm:mbedtls-4-support
Draft

Mbedtls 4 support (and esp-idf 6)#2174
petermm wants to merge 10 commits intoatomvm:mainfrom
petermm:mbedtls-4-support

Conversation

@petermm
Copy link
Contributor

@petermm petermm commented Mar 9, 2026

Esp-idf 6 - simtest - is included as it was an opportunity to test mbedtls4

Obviously this PR should be mbedtls4 only, and then esp-idf in another.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@petermm petermm force-pushed the mbedtls-4-support branch from b649191 to 347b758 Compare March 16, 2026 21:40
petermm added 4 commits March 17, 2026 05:10
Avoid including mbedtls/pkcs5.h when building against mbedtls 4,
where that header is not available.

Keep the existing PKCS5-based pbkdf2_hmac implementation for
mbedtls 2/3, but switch the mbedtls 4 path to the PSA key
derivation API so crypto:pbkdf2_hmac/5 remains available.

Also update the feature/NIF guards so pbkdf2_hmac stays registered
on both legacy and mbedtls 4 builds.

Signed-off-by: Peter M <petermm@gmail.com>
@petermm petermm force-pushed the mbedtls-4-support branch from 518ea0f to 94c6a0c Compare March 17, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant