blob: b04b180bd190d7de2bbd4d8db3d8c32bd6aeda10 [file] [log] [blame]
Jamie Fox0e54ebc2019-04-09 14:21:04 +01001/*
2 * Copyright (c) 2019, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __TFM_MBEDCRYPTO_INCLUDE_H__
9#define __TFM_MBEDCRYPTO_INCLUDE_H__
10
11/* FIXME: The PSA Crypto headers in Mbed Crypto define PSA_SUCCESS and typedef
12 * psa_status_t. To prevent redefinition errors in psa_client.h, use the
13 * preprocessor to prefix psa_status_t in the Mbed Crypto headers, and then
14 * undef psa_status_t and PSA_SUCCESS after the include.
15 */
16#define psa_status_t mbedcrypto__psa_status_t
17/* Include the crypto_spe.h header before including the PSA Crypto header from
18 * Mbed Crypto
19 */
20#include "crypto_spe.h"
21#include "mbedcrypto/psa/crypto.h"
22#undef psa_status_t
23#undef PSA_SUCCESS
24
25#endif /* __TFM_MBEDCRYPTO_INCLUDE_H__ */