forked from intel/QAT_Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
e_qat_err.h
301 lines (293 loc) · 16.8 KB
/
e_qat_err.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
/*
* Generated by util/mkerr.pl DO NOT EDIT
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
#ifndef HEADER_QATERR_H
# define HEADER_QATERR_H
# include <openssl/symhacks.h>
# define QATerr(f, r) ERR_QAT_error((f), (r), OPENSSL_FILE, OPENSSL_LINE)
# ifdef __cplusplus
extern "C" {
# endif
int ERR_load_QAT_strings(void);
void ERR_unload_QAT_strings(void);
void ERR_QAT_error(int function, int reason, char *file, int line);
# ifdef __cplusplus
}
# endif
/*
* QAT function codes.
*/
# define QAT_F_BIND_QAT 100
# define QAT_F_BUILD_DECRYPT_OP_BUF 101
# define QAT_F_BUILD_ENCRYPT_OP_BUF 102
# define QAT_F_CRT_COMBINE 103
# define QAT_F_CRT_PREPARE 104
# define QAT_F_ENGINE_FINISH_BEFORE_FORK_HANDLER 105
# define QAT_F_ENGINE_INIT_CHILD_AT_FORK_HANDLER 106
# define QAT_F_ENGINE_QAT 107
# define QAT_F_EVENT_POLL_FUNC 108
# define QAT_F_MULTIBUFF_ENGINE_CTRL 109
# define QAT_F_MULTIBUFF_ENGINE_FINISH_INT 110
# define QAT_F_MULTIBUFF_ENGINE_INIT 111
# define QAT_F_MULTIBUFF_FREE_RSA_METHODS 112
# define QAT_F_MULTIBUFF_GET_RSA_METHODS 113
# define QAT_F_MULTIBUFF_RSA_ADD_PADDING_PRIV_ENC 114
# define QAT_F_MULTIBUFF_RSA_ADD_PADDING_PUB_ENC 115
# define QAT_F_MULTIBUFF_RSA_PRIV_DEC 116
# define QAT_F_MULTIBUFF_RSA_PRIV_ENC 117
# define QAT_F_MULTIBUFF_RSA_PUB_DEC 118
# define QAT_F_MULTIBUFF_RSA_PUB_ENC 119
# define QAT_F_POLL_INSTANCES 120
# define QAT_F_QAT_ADJUST_THREAD_AFFINITY 121
# define QAT_F_QAT_CRYPTO_CALLBACKFN 122
# define QAT_F_QAT_DH_COMPUTE_KEY 123
# define QAT_F_QAT_DH_GENERATE_KEY 124
# define QAT_F_QAT_DSA_DO_SIGN 125
# define QAT_F_QAT_DSA_DO_VERIFY 126
# define QAT_F_QAT_DSA_SIGN_SETUP 127
# define QAT_F_QAT_ECDH_COMPUTE_KEY 128
# define QAT_F_QAT_ECDH_GENERATE_KEY 129
# define QAT_F_QAT_ECDSA_DO_SIGN 130
# define QAT_F_QAT_ECDSA_DO_VERIFY 131
# define QAT_F_QAT_ECDSA_SIGN 132
# define QAT_F_QAT_ECDSA_VERIFY 133
# define QAT_F_QAT_ENGINE_CTRL 134
# define QAT_F_QAT_ENGINE_ECDH_COMPUTE_KEY 135
# define QAT_F_QAT_ENGINE_FINISH_INT 136
# define QAT_F_QAT_ENGINE_INIT 137
# define QAT_F_QAT_FD_CLEANUP 138
# define QAT_F_QAT_FREE_DH_METHODS 139
# define QAT_F_QAT_FREE_DSA_METHODS 140
# define QAT_F_QAT_FREE_EC_METHODS 141
# define QAT_F_QAT_FREE_RSA_METHODS 142
# define QAT_F_QAT_GET_DH_METHODS 143
# define QAT_F_QAT_GET_DSA_METHODS 144
# define QAT_F_QAT_GET_EC_METHODS 145
# define QAT_F_QAT_GET_RSA_METHODS 146
# define QAT_F_QAT_HKDF_DERIVE 147
# define QAT_F_QAT_HKDF_INIT 148
# define QAT_F_QAT_HKDF_PMETH 149
# define QAT_F_QAT_INIT_OP_DONE 150
# define QAT_F_QAT_INIT_OP_DONE_PIPE 151
# define QAT_F_QAT_INIT_OP_DONE_RSA_CRT 152
# define QAT_F_QAT_MOD_EXP 153
# define QAT_F_QAT_PKEY_ECX_DERIVE25519 154
# define QAT_F_QAT_PKEY_ECX_DERIVE448 155
# define QAT_F_QAT_PKEY_ECX_KEYGEN 156
# define QAT_F_QAT_PRF_PMETH 157
# define QAT_F_QAT_PRF_TLS_DERIVE 158
# define QAT_F_QAT_RSA_DECRYPT 159
# define QAT_F_QAT_RSA_DECRYPT_CRT 160
# define QAT_F_QAT_RSA_ENCRYPT 161
# define QAT_F_QAT_RSA_PRIV_DEC 162
# define QAT_F_QAT_RSA_PRIV_ENC 163
# define QAT_F_QAT_RSA_PUB_DEC 164
# define QAT_F_QAT_RSA_PUB_ENC 165
# define QAT_F_QAT_SET_AFFINE_COORDINATES 166
# define QAT_F_QAT_SET_INSTANCE_FOR_THREAD 167
# define QAT_F_QAT_SYM_PERFORM_OP 168
# define QAT_F_QAT_VALIDATE_ECX_DERIVE 169
# define QAT_F_QAT_X25519_PMETH 170
# define QAT_F_QAT_X448_PMETH 171
/*
* QAT reason codes.
*/
# define QAT_R_ADD_M2_FAILURE 100
# define QAT_R_ADJUST_DELTA_M1_M2_FAILURE 101
# define QAT_R_ALLOC_E_CHECK_FAILURE 102
# define QAT_R_ALLOC_MULTIBUFF_RSA_METH_FAILURE 103
# define QAT_R_ALLOC_QAT_DSA_METH_FAILURE 104
# define QAT_R_ALLOC_QAT_RSA_METH_FAILURE 105
# define QAT_R_ALLOC_QAT_X25519_METH_FAILURE 106
# define QAT_R_ALLOC_QAT_X448_METH_FAILURE 107
# define QAT_R_BUF_CONV_FAIL 108
# define QAT_R_CLOSE_READFD_FAILURE 109
# define QAT_R_COMPUTE_H_MULTIPLY_Q_FAILURE 110
# define QAT_R_CP_BUF_MALLOC_FAILURE 111
# define QAT_R_CQ_BUF_MALLOC_FAILURE 112
# define QAT_R_CREATE_FREELIST_QUEUE_FAILURE 113
# define QAT_R_CTX_MALLOC_FAILURE 114
# define QAT_R_CURVE_COORDINATE_PARAMS_CONVERT_TO_FB_FAILURE 115
# define QAT_R_C_MODULO_P_FAILURE 116
# define QAT_R_C_MODULO_Q_FAILURE 117
# define QAT_R_C_P_Q_CP_CQ_MALLOC_FAILURE 118
# define QAT_R_DEC_OP_DATA_MALLOC_FAILURE 119
# define QAT_R_DGSTLEN_INVALID 120
# define QAT_R_DGST_BN_CONV_FAILURE 121
# define QAT_R_DH_NULL 122
# define QAT_R_DLEN_INVALID 123
# define QAT_R_DSA_DGST_NULL 124
# define QAT_R_DSA_DGST_SIG_NULL 125
# define QAT_R_ECDH_GET_AFFINE_COORD_FAILED 126
# define QAT_R_ECDH_GROUP_NULL 127
# define QAT_R_ECDH_PRIVATE_KEY_NULL 128
# define QAT_R_ECDH_PRIV_KEY_PUB_KEY_NULL 129
# define QAT_R_ECDH_SET_AFFINE_COORD_FAILED 130
# define QAT_R_ECDH_UNKNOWN_FIELD_TYPE 131
# define QAT_R_ECDSA_SIG_MALLOC_FAILURE 132
# define QAT_R_ECDSA_SIG_SET_R_S_FAILURE 133
# define QAT_R_ECKEY_GROUP_PUBKEY_SIG_NULL 134
# define QAT_R_EC_POINT_RETRIEVE_FAILURE 135
# define QAT_R_ENC_OP_DATA_MALLOC_FAILURE 136
# define QAT_R_ENGINE_CTRL_CMD_FAILURE 137
# define QAT_R_ENGINE_ID_ALREADY_DEFINED 138
# define QAT_R_ENGINE_INIT_FAILURE 139
# define QAT_R_ENGINE_NULL 140
# define QAT_R_ENGINE_REGISTER_FUNC_FAILURE 141
# define QAT_R_ENGINE_SET_CIPHER_FAILURE 142
# define QAT_R_ENGINE_SET_DH_FAILURE 143
# define QAT_R_ENGINE_SET_DSA_FAILURE 144
# define QAT_R_ENGINE_SET_EC_FAILURE 145
# define QAT_R_ENGINE_SET_ID_FAILURE 146
# define QAT_R_ENGINE_SET_NAME_FAILURE 147
# define QAT_R_ENGINE_SET_PKEY_FAILURE 148
# define QAT_R_ENGINE_SET_RSA_FAILURE 149
# define QAT_R_EPOLL_CREATE_FAILURE 150
# define QAT_R_EPOLL_CTL_FAILURE 151
# define QAT_R_EVENTS_MALLOC_FAILURE 152
# define QAT_R_FALLBACK_POINTER_NULL 153
# define QAT_R_FIELD_SIZE_INVALID 154
# define QAT_R_FREE_DH_METH_FAILURE 155
# define QAT_R_FREE_MULTIBUFF_RSA_METH_FAILURE 156
# define QAT_R_FREE_QAT_DSA_METH_FAILURE 157
# define QAT_R_FREE_QAT_RSA_METH_FAILURE 158
# define QAT_R_GET_FILE_DESCRIPTOR_FAILURE 159
# define QAT_R_GET_GROUP_FAILURE 160
# define QAT_R_GET_INSTANCE_FAILURE 161
# define QAT_R_GET_INSTANCE_INFO_FAILURE 162
# define QAT_R_GET_NUM_INSTANCE_FAILURE 163
# define QAT_R_GET_PQG_FAILURE 164
# define QAT_R_GET_PRIV_KEY_FAILURE 165
# define QAT_R_GROUP_PRIV_KEY_PUB_KEY_NULL 166
# define QAT_R_ICP_SAL_USERSTART_FAIL 167
# define QAT_R_INPUT_DATA_MALLOC_FAILURE 168
# define QAT_R_INPUT_PARAM_INVALID 169
# define QAT_R_INSTANCE_HANDLE_MALLOC_FAILURE 170
# define QAT_R_INSTANCE_UNAVAILABLE 171
# define QAT_R_INVALID_PEER_KEY 172
# define QAT_R_INVALID_PRIVATE_KEY 173
# define QAT_R_INVALID_PUB_KEY 174
# define QAT_R_IN_KINV_CONVERT_TO_FB_FAILURE 175
# define QAT_R_IN_R_CONVERT_TO_FB_FAILURE 176
# define QAT_R_KEYS_NOT_SET 177
# define QAT_R_KEY_NULL 178
# define QAT_R_K_ALLOCATE_FAILURE 179
# define QAT_R_K_CONVERT_TO_FB_FAILURE 180
# define QAT_R_K_ORDER_CONVERT_TO_FB_FAILURE 181
# define QAT_R_K_RAND_GENERATE_FAILURE 182
# define QAT_R_M1_DEDUCT_M2_FAILURE 183
# define QAT_R_M1_M2_P_Q_QINV_TMP_MALLOC_FAILURE 184
# define QAT_R_MAX_RETRIES_EXCEEDED 185
# define QAT_R_MEM_DRV_NOT_PRESENT 186
# define QAT_R_MODULO_P_FAILURE 187
# define QAT_R_MOD_GET_NEXT_INST_FAIL 188
# define QAT_R_MOD_LN_MOD_EXP_FAIL 189
# define QAT_R_MOD_SETUP_ASYNC_EVENT_FAIL 190
# define QAT_R_MULTIPLY_QINV_FAILURE 191
# define QAT_R_N_E_CONVERT_TO_FB_FAILURE 192
# define QAT_R_N_E_NULL 193
# define QAT_R_OP1_BASE_PDATA_MALLOC_FAILURE 194
# define QAT_R_OP2_BASE_PDATA_MALLOC_FAILURE 195
# define QAT_R_OPDATA_A_PDATA_MALLOC_FAILURE 196
# define QAT_R_OPDATA_DATA_MALLOC_FAILURE 197
# define QAT_R_OPDATA_MALLOC_FAILURE 198
# define QAT_R_OPDATA_PDATA_MALLOC_FAILURE 199
# define QAT_R_OPDATA_ZPDATA_MALLOC_FAILURE 200
# define QAT_R_OPDCRT_NULL 201
# define QAT_R_OPDONE_NULL 202
# define QAT_R_OPDPIPE_NULL 203
# define QAT_R_ORDER_MALLOC_FAILURE 204
# define QAT_R_OUT1_PDATA_MALLOC_FAILURE 205
# define QAT_R_OUT2_PDATA_MALLOC_FAILURE 206
# define QAT_R_OUTPUT_BUF_MALLOC_FAILURE 207
# define QAT_R_OUTPUT_BUF_PDATA_MALLOC_FAILURE 208
# define QAT_R_OUTX_MALLOC_FAILURE 209
# define QAT_R_OUTX_OUTY_LEN_NULL 210
# define QAT_R_OUTY_MALLOC_FAILURE 211
# define QAT_R_PADDING_UNKNOWN 212
# define QAT_R_POLLING_THREAD_CREATE_FAILURE 213
# define QAT_R_POLLING_THREAD_SIGMASK_FAILURE 214
# define QAT_R_POLL_INSTANCE_FAILURE 215
# define QAT_R_PPV_MALLOC_FAILURE 216
# define QAT_R_PPV_PDATA_MALLOC_FAILURE 217
# define QAT_R_PRESULTR_MALLOC_FAILURE 218
# define QAT_R_PRESULTR_PDATA_MALLOC_FAILURE 219
# define QAT_R_PRESULTS_MALLOC_FAILURE 220
# define QAT_R_PRESULTS_PDATA_MALLOC_FAILURE 221
# define QAT_R_PRESULTX_MALLOC_FAILURE 222
# define QAT_R_PRESULTX_PDATA_MALLOC_FAILURE 223
# define QAT_R_PRESULTY_LENGTH_CHECK_FAILURE 224
# define QAT_R_PRESULTY_MALLOC_FAILURE 225
# define QAT_R_PRESULTY_PDATA_MALLOC_FAILURE 226
# define QAT_R_PRIV_KEY_DUPLICATE_FAILURE 227
# define QAT_R_PRIV_KEY_MALLOC_FAILURE 228
# define QAT_R_PRIV_KEY_M_XG_YG_A_B_P_CONVERT_TO_FB_FAILURE 229
# define QAT_R_PRIV_KEY_NULL 230
# define QAT_R_PRIV_KEY_RAND_GENERATE_FAILURE 231
# define QAT_R_PRIV_KEY_XG_YG_A_B_P_CONVERT_TO_FB_FAILURE 232
# define QAT_R_PTHREAD_CREATE_FAILURE 233
# define QAT_R_PTHREAD_GETAFFINITY_FAILURE 234
# define QAT_R_PTHREAD_JOIN_FAILURE 235
# define QAT_R_PTHREAD_KILL_FAILURE 236
# define QAT_R_PTHREAD_SETAFFINITY_FAILURE 237
# define QAT_R_PUB_KEY_DUPLICATE_FAILURE 238
# define QAT_R_PUB_KEY_MALLOC_FAILURE 239
# define QAT_R_PUB_KEY_NULL 240
# define QAT_R_P_A_B_XG_YG_MALLOC_FAILURE 241
# define QAT_R_P_A_B_XG_YG_M_K_R_ORDER_MALLOC_FAILURE 242
# define QAT_R_P_A_B_XG_YG_XP_YP_M_ORDER_FAILURE 243
# define QAT_R_P_G_PRIV_KEY_CONVERT_TO_FB_FAILURE 244
# define QAT_R_P_PUB_PRIV_KEY_CONVERT_TO_FB_FAILURE 245
# define QAT_R_P_Q_DMP_DMQ_CONVERT_TO_FB_FAILURE 246
# define QAT_R_P_Q_DMP_DMQ_IQMP_NULL 247
# define QAT_R_P_Q_G_NULL 248
# define QAT_R_P_Q_G_X_K_CONVERT_TO_FB_FAILURE 249
# define QAT_R_P_Q_G_Y_Z_R_S_CONVERT_TO_FB_FAILURE 250
# define QAT_R_QAT_ALLOC_DH_METH_FAILURE 251
# define QAT_R_QAT_CREATE_ENGINE_FAILURE 252
# define QAT_R_QAT_DEV_NOT_PRESENT 253
# define QAT_R_QAT_ECDSA_DO_SIGN_FAIL 254
# define QAT_R_QAT_FREE_EC_METHOD_FAILURE 255
# define QAT_R_QAT_GET_EC_METHOD_MALLOC_FAILURE 256
# define QAT_R_QAT_SET_DH_METH_FAILURE 257
# define QAT_R_RESULT_PDATA_ALLOC_FAIL 258
# define QAT_R_RETRIEVE_EC_POINT_FAILURE 259
# define QAT_R_RETRIEVE_ORDER_FAILURE 260
# define QAT_R_RSA_FROM_TO_NULL 261
# define QAT_R_RSA_OUTPUT_BUF_PDATA_MALLOC_FAILURE 262
# define QAT_R_R_Q_COMPARE_FAILURE 263
# define QAT_R_SECRET_KEY_MALLOC_FAILURE 264
# define QAT_R_SECRET_KEY_PDATA_MALLOC_FAILURE 265
# define QAT_R_SETUP_ASYNC_EVENT_FAILURE 266
# define QAT_R_SET_ADDRESS_TRANSLATION_FAILURE 267
# define QAT_R_SET_FILE_DESCRIPTOR_NONBLOCKING_FAILURE 268
# define QAT_R_SET_INSTANCE_FAILURE 269
# define QAT_R_SET_MULTIBUFF_RSA_METH_FAILURE 270
# define QAT_R_SET_NOTIFICATION_CALLBACK_FAILURE 271
# define QAT_R_SET_POLLING_THREAD_AFFINITY_FAILURE 272
# define QAT_R_SET_PRIV_KEY_FAILURE 273
# define QAT_R_SET_QAT_DSA_METH_FAILURE 274
# define QAT_R_SET_QAT_RSA_METH_FAILURE 275
# define QAT_R_SIG_GET_R_S_FAILURE 276
# define QAT_R_SIG_MALLOC_FAILURE 277
# define QAT_R_START_INSTANCE_FAILURE 278
# define QAT_R_STOP_INSTANCE_FAILURE 279
# define QAT_R_SW_GET_COMPUTE_KEY_PFUNC_NULL 280
# define QAT_R_SW_GET_KEYGEN_PFUNC_NULL 281
# define QAT_R_SW_GET_SIGN_SIG_PFUNC_NULL 282
# define QAT_R_SW_GET_VERIFY_SIG_PFUNC_NULL 283
# define QAT_R_SW_METHOD_NULL 284
# define QAT_R_S_NULL 285
# define QAT_R_S_Q_COMPARE_FAILURE 286
# define QAT_R_UNKNOWN_PADDING 287
# define QAT_R_UNKNOWN_PADDING_TYPE 288
# define QAT_R_WAKE_PAUSE_JOB_FAILURE 289
# define QAT_R_X_Y_TX_TY_BN_MALLOC_FAILURE 290
# define QAT_R_Z_ALLOCATE_FAILURE 291
#endif