This is an automated email from the ASF dual-hosted git repository. sjanc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 08f21fe89ad77e152c04593183d183f9dfc5c4a9 Author: Szymon Janc <[email protected]> AuthorDate: Thu Jun 11 14:09:15 2026 +0200 bsp/native: Use Mbed TLS backedng for encrypted flash Tinycrypt backend is going to be removed. --- hw/bsp/native/pkg.yml | 2 +- hw/bsp/native/src/hal_bsp.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/bsp/native/pkg.yml b/hw/bsp/native/pkg.yml index a2085db8b..7fcb6ba07 100644 --- a/hw/bsp/native/pkg.yml +++ b/hw/bsp/native/pkg.yml @@ -29,7 +29,7 @@ pkg.keywords: pkg.deps: - "@apache-mynewt-core/hw/mcu/native" - "@apache-mynewt-core/hw/drivers/uart/uart_hal" - - "@apache-mynewt-core/hw/drivers/flash/enc_flash/ef_tinycrypt" + - "@apache-mynewt-core/hw/drivers/flash/enc_flash/ef_mbedtls" - "@apache-mynewt-core/hw/drivers/trng/trng_sw" - "@apache-mynewt-core/net/ip/native_sockets" diff --git a/hw/bsp/native/src/hal_bsp.c b/hw/bsp/native/src/hal_bsp.c index 2c89787ca..4de018617 100644 --- a/hw/bsp/native/src/hal_bsp.c +++ b/hw/bsp/native/src/hal_bsp.c @@ -32,7 +32,7 @@ #include "mcu/mcu_hal.h" #include "hal/hal_i2c.h" #include "defs/sections.h" -#include "ef_tinycrypt/ef_tinycrypt.h" +#include "ef_mbedtls/ef_mbedtls.h" #include <trng_sw/trng_sw.h> #if MYNEWT_VAL(SIM_ACCEL_PRESENT) @@ -48,8 +48,8 @@ static struct trng_sw_dev_cfg os_bsp_trng_cfg = { .tsdc_entr = &mypid, .tsdc_len = sizeof(mypid) }; -static sec_data_secret struct eflash_tinycrypt_dev ef_dev0 = { - .etd_dev = { +static sec_data_secret struct eflash_mbedtls_dev ef_dev0 = { + .dev = { .efd_hal = { .hf_itf = &enc_flash_funcs, }, @@ -64,7 +64,7 @@ hal_bsp_flash_dev(uint8_t id) case 0: return &native_flash_dev; case 1: - return &ef_dev0.etd_dev.efd_hal; + return &ef_dev0.dev.efd_hal; default: return NULL; }
