update mbedtsl (works also for framework 3.5.0)

This commit is contained in:
MichaelDvP
2022-04-25 16:55:51 +02:00
parent ab17dd5812
commit adc88d53d3

View File

@@ -71,9 +71,9 @@ static bool getMD5(uint8_t * data, uint16_t len, char * output){//33 bytes or mo
memset(_buf, 0x00, 16); memset(_buf, 0x00, 16);
#ifdef ESP32 #ifdef ESP32
mbedtls_md5_init(&_ctx); mbedtls_md5_init(&_ctx);
mbedtls_md5_starts(&_ctx); mbedtls_md5_update_ret (&_ctx,data,len);
mbedtls_md5_update(&_ctx, data, len); mbedtls_md5_finish_ret(&_ctx,data);
mbedtls_md5_finish(&_ctx, _buf); mbedtls_internal_md5_process( &_ctx ,data);
#else #else
MD5Init(&_ctx); MD5Init(&_ctx);
MD5Update(&_ctx, data, len); MD5Update(&_ctx, data, len);