1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (C) 2019-2020, Linaro Limited
4  */
5 
6 #ifndef TRUSTED_KEYS_H
7 #define TRUSTED_KEYS_H
8 
9 #define TRUSTED_KEYS_UUID { 0xf04a0fe7, 0x1f5d, 0x4b9b, \
10 		{ 0xab, 0xf7, 0x61, 0x9b, 0x85, 0xb4, 0xce, 0x8c } }
11 
12 /*
13  * Get random data for symmetric key
14  *
15  * [out]     memref[0]        Random data
16  */
17 #define TA_CMD_GET_RANDOM	0x0
18 
19 /*
20  * Seal trusted key using hardware unique key
21  *
22  * [in]      memref[0]        Plain key
23  * [out]     memref[1]        Sealed key datablob
24  */
25 #define TA_CMD_SEAL		0x1
26 
27 /*
28  * Unseal trusted key using hardware unique key
29  *
30  * [in]      memref[0]        Sealed key datablob
31  * [out]     memref[1]        Plain key
32  */
33 #define TA_CMD_UNSEAL		0x2
34 
35 #endif /* TRUSTED_KEYS_H */
36