mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(esp-coredump): fix build error when mbedtls hardware sha disabled
This commit is contained in:
parent
6531fe94ca
commit
a1287b1315
@ -31,7 +31,9 @@ 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)
|
static void core_dump_sha256_update(core_dump_sha_ctx_t *sha_ctx, const void *data, size_t data_len)
|
||||||
{
|
{
|
||||||
// set software mode of SHA calculation
|
// set software mode of SHA calculation
|
||||||
|
#if CONFIG_MBEDTLS_HARDWARE_SHA
|
||||||
sha_ctx->ctx.mode = ESP_MBEDTLS_SHA256_SOFTWARE;
|
sha_ctx->ctx.mode = ESP_MBEDTLS_SHA256_SOFTWARE;
|
||||||
|
#endif
|
||||||
mbedtls_sha256_update(&sha_ctx->ctx, data, data_len);
|
mbedtls_sha256_update(&sha_ctx->ctx, data, data_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user