My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
otz_id.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  * Trustzone client driver defintions.
25  */
26 
27 #ifndef __OTZ_ID_H_
28 #define __OTZ_ID_H_
29 
30 #define SMC_ENOMEM 7
31 #define SMC_EOPNOTSUPP 6
32 #define SMC_EINVAL_ADDR 5
33 #define SMC_EINVAL_ARG 4
34 #define SMC_ERROR 3
35 #define SMC_INTERRUPTED 2
36 #define SMC_PENDING 1
37 #define SMC_SUCCESS 0
38 
48 };
49 
53 enum otz_svc_id {
61 };
62 
71 #ifdef OTZONE_ASYNC_NOTIFY_SUPPORT
72  OTZ_GLOBAL_CMD_ID_REGISTER_NOTIFY_MEMORY,
73  OTZ_GLOBAL_CMD_ID_UNREGISTER_NOTIFY_MEMORY,
74 #endif
77  OTZ_GLOBAL_CMD_ID_MAX = 0x7FFFFFFF
78 };
79 
110  OTZ_CRYPT_CMD_ID_MAX = 0x7FFFFFFF
111 };
112 
113 #define MD5_OUTPUT_LEN 16
114 #define SHA1_OUTPUT_LEN 20
115 #define SHA224_OUTPUT_LEN 28
116 #define SHA256_OUTPUT_LEN 32
117 #define SHA384_OUTPUT_LEN 48
118 #define SHA512_OUTPUT_LEN 64
119 #define HMAC_KEY_LEN 16
120 #define HMAC_DATA_LEN 50
121 #define HMAC_OUTPUT_LEN 16
122 #define AES_128_CBC_LEN 16
123 #define AES_128_ECB_LEN 16
124 #define AES_128_CTR_LEN 16
125 #define AES_128_XTS_LEN 16
126 #define DES_ECB_LEN 8
127 #define DES_CBC_LEN 8
128 #define DES3_CBC_LEN 8
129 #define DES3_ECB_LEN 8
130 #define CIPHER_ENCRYPT 2
131 #define CIPHER_DECRYPT 1
132 #define IGNORE_PARAM 0xff
133 
134 
144 };
145 
146 
156 #ifdef OTZONE_ASYNC_NOTIFY_SUPPORT
157  OTZ_ECHO_CMD_ID_TEST_ASYNC_SEND_CMD,
158 #endif
160  OTZ_ECHO_CMD_ID_MAX = 0x7FFFFFFF
161 };
162 
170 };
171 
179 };
180 #endif /* __OPEN_OTZ_ID_H_ */
Definition: otz_id.h:154
Definition: otz_id.h:89
Definition: otz_id.h:140
Definition: otz_id.h:97
Definition: otz_id.h:110
Definition: otz_id.h:76
Definition: otz_id.h:104
open_tz_mutex_test_cmd_id
Enums used for mutex test task.
Definition: otz_id.h:139
Definition: otz_id.h:94
Definition: otz_id.h:167
Definition: otz_id.h:57
Definition: otz_id.h:84
Definition: otz_id.h:151
Definition: otz_id.h:141
otz_global_cmd_id
Command ID's for global service.
Definition: otz_id.h:66
Definition: otz_id.h:99
Definition: otz_id.h:103
Definition: otz_id.h:88
otz_echo_cmd_id
Enums used for echo service task.
Definition: otz_id.h:150
Definition: otz_id.h:46
Definition: otz_id.h:159
Definition: otz_id.h:43
Definition: otz_id.h:98
Definition: otz_id.h:96
Definition: otz_id.h:68
Definition: otz_id.h:101
Definition: otz_id.h:44
Definition: otz_id.h:93
Definition: otz_id.h:176
Definition: otz_id.h:100
Definition: otz_id.h:60
otz_svc_id
Service identifiers.
Definition: otz_id.h:53
Definition: otz_id.h:87
Definition: otz_id.h:108
Definition: otz_id.h:152
Definition: otz_id.h:160
Definition: otz_id.h:58
Definition: otz_id.h:106
Definition: otz_id.h:169
otz_crypt_cmd_id
Enums used for crypto service task.
Definition: otz_id.h:83
Definition: otz_id.h:102
Definition: otz_id.h:177
Definition: otz_id.h:95
Definition: otz_id.h:70
Definition: otz_id.h:168
Definition: otz_id.h:56
Definition: otz_id.h:153
Definition: otz_id.h:69
Definition: otz_id.h:59
Definition: otz_id.h:142
Definition: otz_id.h:143
Definition: otz_id.h:67
Definition: otz_id.h:155
Definition: otz_id.h:86
otz_virtual_keyboard_cmd_id
Definition: otz_id.h:166
Definition: otz_id.h:90
Definition: otz_id.h:91
Definition: otz_id.h:105
Definition: otz_id.h:85
Definition: otz_id.h:107
Definition: otz_id.h:109
Definition: otz_id.h:55
Definition: otz_id.h:47
Definition: otz_id.h:54
Definition: otz_id.h:77
otz_drm_cmd_id
Definition: otz_id.h:175
Definition: otz_id.h:92
Definition: otz_id.h:45
otz_enc_data_type
Encoding data type.
Definition: otz_id.h:42
Definition: otz_id.h:178