/* SPDX-License-Identifier: BSD-2-Clause */ /* Copyright (c) 2018, Linaro Limited */ #ifndef __MBEDTLS_CONFIG_KERNEL_H #define __MBEDTLS_CONFIG_KERNEL_H #ifdef CFG_CORE_MBEDTLS_MPI #ifdef ARM32 #define MBEDTLS_HAVE_INT32 #endif #ifdef ARM64 #define MBEDTLS_HAVE_INT64 #endif #define MBEDTLS_BIGNUM_C #define MBEDTLS_GENPRIME #endif /* Test if Mbedtls is the primary crypto lib */ #ifdef CFG_CRYPTOLIB_NAME_mbedtls #if defined(CFG_CRYPTO_MD5) #define MBEDTLS_MD5_C #define MBEDTLS_MD_C #endif #if defined(CFG_CRYPTO_SHA1) #define MBEDTLS_SHA1_C #define MBEDTLS_MD_C #endif #if defined(CFG_CRYPTO_SHA224) || defined(CFG_CRYPTO_SHA256) #define MBEDTLS_SHA256_C #define MBEDTLS_MD_C #endif #if defined(CFG_CRYPTO_SHA384) || defined(CFG_CRYPTO_SHA512) #define MBEDTLS_SHA512_C #define MBEDTLS_MD_C #endif #endif /*CFG_CRYPTOLIB_NAME_mbedtls*/ #include #endif /* __MBEDTLS_CONFIG_KERNEL_H */