blob: 9c396bf07b7f555486849521e078198d26f67c8d [file] [log] [blame]
Julian Halla5443172022-05-30 11:52:11 +01001/*
2 * Copyright (c) 2020-2023, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef CONFIG_CRYPTO_POSIX_H
8#define CONFIG_CRYPTO_POSIX_H
9
10/*
11 * Mbed TLS configuration for using libmbedcrypto in
12 * a Posix environment (normal world demo and test applications).
13 */
Gabor Toth4ad8b992024-08-13 10:41:48 +020014
15/*
16 * Enable using crypto_config.h, but do not define custom crypto header with
17 * MBEDTLS_PSA_CRYPTO_CONFIG_FILE to enable all the supported algorithms.
18 */
Julian Halla5443172022-05-30 11:52:11 +010019#define MBEDTLS_PSA_CRYPTO_CONFIG
Gabor Toth4ad8b992024-08-13 10:41:48 +020020
21#define MBEDTLS_BASE64_C
22#define MBEDTLS_BIGNUM_C
23#define MBEDTLS_ECP_NIST_OPTIM
24#define MBEDTLS_ENTROPY_C
25#define MBEDTLS_HAVE_ASM
26#define MBEDTLS_LMS_C
27#define MBEDTLS_NIST_KW_C
Julian Halla5443172022-05-30 11:52:11 +010028#define MBEDTLS_NO_UDBL_DIVISION
Gabor Toth4ad8b992024-08-13 10:41:48 +020029#define MBEDTLS_OID_C
30#define MBEDTLS_PKCS12_C
31#define MBEDTLS_PKCS5_C
32#define MBEDTLS_PK_C
33#define MBEDTLS_PK_PARSE_C
34#define MBEDTLS_PK_WRITE_C
35#define MBEDTLS_PSA_CRYPTO_C
36#define MBEDTLS_X509_CRL_PARSE_C
37#define MBEDTLS_X509_CRT_PARSE_C
38#define MBEDTLS_X509_USE_C
Julian Halla5443172022-05-30 11:52:11 +010039
40#endif /* CONFIG_CRYPTO_POSIX_H */