feat(lwip): migrate to to PSA API interface

This commit is contained in:
Ashish Sharma
2025-12-18 21:18:58 +08:00
parent 77d2a9e627
commit b4fea9cccc
26 changed files with 599 additions and 352 deletions
@@ -3,11 +3,19 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#ifndef NVS_ENCRYPTED_PARTITION_HPP_
#define NVS_ENCRYPTED_PARTITION_HPP_
#include "sdkconfig.h" // For CONFIG_NVS_BDL_STACK
#include "mbedtls/aes.h" // For mbedtls_aes_xts_context
#include "nvs_flash.h" // For nvs_sec_cfg_t
/* NOTE: Using legacy mbedtls XTS API until PSA Crypto adds XTS support
* With TF-PSA-Crypto 1.0, AES headers moved to mbedtls/private/.
* Need MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS to access XTS functions.
*/
#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
#include "mbedtls/aes.h"
#include "nvs_flash.h"
#include "nvs_partition.hpp"
namespace nvs {