1 /*
2  * Copyright (c) 2022, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_CRYPTO_KEY_H__
9 #define __TFM_CRYPTO_KEY_H__
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #include <stdint.h>
16 #include "psa/crypto.h"
17 
18 /**
19  * \brief The type which describes a key identifier to the Crypto
20  *        service. The key identifiers must clearly provide a
21  *        dedicated indication of the entity owner which owns the key
22  */
23 struct tfm_crypto_key_id_s {
24     psa_key_id_t key_id;  /*!< Key ID for the key itself */
25     int32_t owner;        /*!< ID of the entity owning the key */
26 };
27 
28 /**
29  * \brief A macro to perform static initialisation of a \struct tfm_crypto_key_id_s
30  *        structure
31  */
32 #define TFM_CRYPTO_KEY_ID_S_INIT {0, 0}
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif /* __TFM_CRYPTO_KEY_H__ */
39