1 /*
2  * Copyright (c) 2023-2024 Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __DPE_PLAT_H__
9 #define __DPE_PLAT_H__
10 
11 #include <stddef.h>
12 #include <stdint.h>
13 
14 #include "psa/crypto.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 /**
21  * \brief Get the RoT CDI key ID.
22  *
23  * \return Returns key ID.
24  */
25 psa_key_id_t dpe_plat_get_rot_cdi_key_id(void);
26 
27 /**
28  * \brief Get the key ID of the root attestation key.
29  *
30  * \return Returns key ID.
31  */
32 psa_key_id_t dpe_plat_get_root_attest_key_id(void);
33 
34 /**
35  * \brief Share derived context handle with AP monitor.
36  *
37  * \param[in] ctx_handle    New context handle to share with AP
38  *
39  * \return Returns 0 on success or a negative integer on failure.
40  */
41 int dpe_plat_share_context_with_ap(int ctx_handle);
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif /* __DPE_PLAT_H__ */
48