|
Mbed OS Reference
|
Loading...
Searching...
No Matches
21#ifndef __PLATFORM_MBED__H__
22#define __PLATFORM_MBED__H__
34#if CONFIG_MBEDTLS_ENTROPY_NV_SEED
35#define MBEDTLS_ENTROPY_NV_SEED
38#if defined(FEATURE_EXPERIMENTAL_API) && defined(FEATURE_PSA)
40#if defined(MBEDTLS_ENTROPY_NV_SEED)
42#include "default_random_seed.h"
44#if !defined(MBEDTLS_PLATFORM_NV_SEED_READ_MACRO)
45#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO mbed_default_seed_read
48#if !defined(MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO)
49#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO mbed_default_seed_write
54#define MBEDTLS_PSA_INJECT_ENTROPY
61#define MBEDTLS_PSA_CRYPTO_STORAGE_C
62#define MBEDTLS_PSA_CRYPTO_STORAGE_ITS_C
63#undef MBEDTLS_PSA_CRYPTO_STORAGE_FILE_C
65#define MBEDTLS_ENTROPY_HARDWARE_ALT
70#if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
71#define MBEDTLS_ENTROPY_HARDWARE_ALT
75#if defined(MBEDTLS_CONFIG_HW_SUPPORT)
76#include "mbedtls_device.h"
82#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0080
84#define MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED -0x0070