xref: /optee_os/lib/libutee/include/pta_imx_manufacturing_protection.h (revision 0db2982068aa66a20d041a4aadb43d4d18de6265)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright 2018-2019, 2023 NXP
4  */
5 #ifndef PTA_IMX_MANUFACTURING_PROTECTION_H
6 #define PTA_IMX_MANUFACTURING_PROTECTION_H
7 
8 #define PTA_MANUFACT_PROTEC_UUID { 0x83268b7c, 0x85e3, 0x11e8, \
9 		{ 0xad, 0xc0, 0xfa, 0x7a, 0xe0, 0x1b, 0xbe, 0xbc} }
10 
11 /*
12  * Sign the given message with the manufacturing protection private key
13  *
14  * [in]		memref[0].buffer	Message buffer
15  * [in]		memref[0].size		Message size
16  * [out]	memref[1].buffer	Signature buffer
17  * [out]	memref[1].size		Signature size
18  * [out]	memref[2].buffer	MPMR buffer
19  * [out]	memref[2].size		MPMR size
20  */
21 #define PTA_IMX_MP_CMD_SIGNATURE_MPMR	0
22 
23 /*
24  * Get the manufacturing protection public key
25  *
26  * [out]	memref[0].buffer	Public key buffer
27  * [out]	memref[0].size		Public key size
28  *
29  * Return codes:
30  * TEE_SUCCESS - Invoke command success
31  * TEE_ERROR_BAD_PARAMETERS - Incorrect input param
32  */
33 #define PTA_IMX_MP_CMD_GET_PUBLIC_KEY	1
34 
35 #endif /* PTA_IMX_MANUFACTURING_PROTECTION_H */
36