feat(mbedtls): fix build errors with PSA migration

This commit is contained in:
Ashish Sharma
2025-12-18 21:18:58 +08:00
parent b0da66f7e1
commit a088d2ccdc
72 changed files with 1032 additions and 804 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ static void core_dump_sha256_start(core_dump_sha_ctx_t *sha_ctx)
static void core_dump_sha256_update(core_dump_sha_ctx_t *sha_ctx, const void *data, size_t data_len)
{
#if CONFIG_MBEDTLS_HARDWARE_SHA
#if ((CONFIG_MBEDTLS_HARDWARE_SHA) && (MBEDTLS_MAJOR_VERSION < 4))
mbedtls_psa_hash_operation_t *op = &sha_ctx->ctx.MBEDTLS_PRIVATE(ctx).mbedtls_ctx;
mbedtls_sha256_context *ctx = &op->MBEDTLS_PRIVATE(ctx).sha256;
ctx->mode = ESP_MBEDTLS_SHA256_SOFTWARE;