Skip to content

Release notes fail to mention older MBEDTLS version #11361

@dirkx

Description

@dirkx
Contributor

Board

All

Device Description

any

Hardware Configuration

any

Version

v3.2.0

IDE Name

any

Operating System

any

Flash frequency

any

PSRAM enabled

yes

Upload speed

any

Description

From the migration documentation

    https://github.com/espressif/arduino-esp32/blob/543fad2/docs/en/migration_guides/2.x_to_3.0.rst

it is not readily apparent that the MBED TLS version has changed (backwards).

And that matters, for example in 2.0.17, mbedtls_sha256_starts_ret() replaces the legacy mbedtls_sha256_starts()

While the MBED TLS version in 3.2.0 does not yet have mbedtls_sha256_starts_ret() but only mbedtls_sha256_starts().

Sketch

#include "mbedtls/sha256.h"

void setup() {
    mbedtls_sha256_context sha_ctx;
    mbedtls_sha256_init(&sha_ctx);
    mbedtls_sha256_starts_ret(&sha_ctx, 0);
}
void loop() { }

Debug Message

na

Other Steps to Reproduce

na

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Activity

lbernstone

lbernstone commented on May 13, 2025

@lbernstone
Contributor

What makes you think that is newer? AFAICT, esp-idf 5.4 is running the latest release of mbedtls (3.6.3), while arduino-esp32 v2.0.17 is running 2.28.8

dirkx

dirkx commented on May 14, 2025

@dirkx
ContributorAuthor

Hm - that is odd - afaiks mbedtls_sha256_starts() was marked depcrecated; and renamed to mbedtls_sha256_starts_ret() as of/after 2.7.0:

Image

Did it revert back then in 3.0 somehow ?

Jason2866

Jason2866 commented on Jun 6, 2025

@Jason2866
Collaborator

Arduino Core 3.2.0 uses IDF 5.4.1 and this mbedtls version is exactly used https://github.com/espressif/esp-idf/tree/release/v5.4/components/mbedtls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dirkx@lbernstone@Jason2866

        Issue actions

          Release notes fail to mention older MBEDTLS version · Issue #11361 · espressif/arduino-esp32