diff options
Diffstat (limited to 'platform/ext/target/mps2/an521/mbedtls_an521_conf.h')
-rw-r--r-- | platform/ext/target/mps2/an521/mbedtls_an521_conf.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/platform/ext/target/mps2/an521/mbedtls_an521_conf.h b/platform/ext/target/mps2/an521/mbedtls_an521_conf.h new file mode 100644 index 0000000000..6094cb05f0 --- /dev/null +++ b/platform/ext/target/mps2/an521/mbedtls_an521_conf.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2021, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + */ +#ifndef __MBEDTLS_AN521_CONF_H__ +#define __MBEDTLS_AN521_CONF_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#undef MBEDTLS_TEST_NULL_ENTROPY +#undef MBEDTLS_PLATFORM_NO_STD_FUNCTIONS +#undef MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES + +#define MBEDTLS_ENTROPY_NV_SEED +#ifndef MBEDTLS_PLATFORM_NV_SEED_READ_MACRO +#define MBEDTLS_PLATFORM_NV_SEED_READ_MACRO tfm_plat_crypto_nv_seed_read +#endif +#ifndef MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO +#define MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO tfm_plat_crypto_nv_seed_write +#endif + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __MBEDTLS_AN521_CONF_H__ */ |