# Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (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

#Reason codes
QAT_R_AAD_INVALID_PTR:100:aad invalid ptr
QAT_R_AAD_LEN_INVALID:101:aad len invalid
QAT_R_AAD_MALLOC_FAILURE:102:aad malloc failure
QAT_R_ADD_M2_FAILURE:103:add m2 failure
QAT_R_ADJUST_DELTA_M1_M2_FAILURE:104:adjust delta m1 m2 failure
QAT_R_ALLOC_E_CHECK_FAILURE:105:alloc e check failure
QAT_R_ALLOC_MULTIBUFF_RSA_METH_FAILURE:106:alloc multibuff rsa meth failure
QAT_R_ALLOC_QAT_DSA_METH_FAILURE:107:alloc qat dsa meth failure
QAT_R_ALLOC_QAT_RSA_METH_FAILURE:108:alloc qat rsa meth failure
QAT_R_ALLOC_QAT_X25519_METH_FAILURE:109:alloc qat x25519 meth failure
QAT_R_ALLOC_QAT_X448_METH_FAILURE:110:alloc qat x448 meth failure
QAT_R_ALLOC_TAG_FAILURE:111:alloc tag failure
QAT_R_BUF_CONV_FAIL:112:buf conv fail
QAT_R_CHACHAPOLY_CTX_NULL:113:chachapoly ctx null
QAT_R_CLOSE_READFD_FAILURE:114:close readfd failure
QAT_R_COMPUTE_FAILURE:115:compute failure
QAT_R_COMPUTE_H_MULTIPLY_Q_FAILURE:116:compute h multiply q failure
QAT_R_CP_BUF_MALLOC_FAILURE:117:cp buf malloc failure
QAT_R_CQ_BUF_MALLOC_FAILURE:118:cq buf malloc failure
QAT_R_CREATE_FREELIST_QUEUE_FAILURE:119:create freelist queue failure
QAT_R_CTX_MALLOC_FAILURE:120:ctx malloc failure
QAT_R_CTX_NULL:121:ctx null
QAT_R_CURVE_COORDINATE_PARAMS_CONVERT_TO_FB_FAILURE:122:\
	curve coordinate params convert to fb failure
QAT_R_CURVE_DOES_NOT_SUPPORT_SIGNING:123:curve does not support signing
QAT_R_C_MODULO_P_FAILURE:124:c modulo p failure
QAT_R_C_MODULO_Q_FAILURE:125:c modulo q failure
QAT_R_C_P_Q_CP_CQ_MALLOC_FAILURE:126:c p q cp cq malloc failure
QAT_R_DEC_OP_DATA_MALLOC_FAILURE:127:dec op data malloc failure
QAT_R_DERIVE_FAILURE:128:derive failure
QAT_R_DGSTLEN_INVALID:129:dgstlen invalid
QAT_R_DGST_BN_CONV_FAILURE:130:dgst bn conv failure
QAT_R_DH_NULL:131:dh null
QAT_R_DLEN_INVALID:132:dlen invalid
QAT_R_DSA_DGST_NULL:133:dsa dgst null
QAT_R_DSA_DGST_SIG_NULL:134:dsa dgst sig null
QAT_R_ECDH_GET_AFFINE_COORD_FAILED:135:ecdh get affine coord failed
QAT_R_ECDH_GROUP_NULL:136:ecdh group null
QAT_R_ECDH_PRIVATE_KEY_NULL:137:ecdh private key null
QAT_R_ECDH_PRIV_KEY_PUB_KEY_NULL:138:ecdh priv key pub key null
QAT_R_ECDH_SET_AFFINE_COORD_FAILED:139:ecdh set affine coord failed
QAT_R_ECDH_UNKNOWN_FIELD_TYPE:140:ecdh unknown field type
QAT_R_ECDSA_MALLOC_FAILURE:141:ecdsa malloc failure
QAT_R_ECDSA_SIGN_FAILURE:142:ecdsa sign failure
QAT_R_ECDSA_SIGN_SETUP_FAILURE:143:ecdsa sign setup failure
QAT_R_ECDSA_SIG_MALLOC_FAILURE:144:ecdsa sig malloc failure
QAT_R_ECDSA_SIG_SET_R_S_FAILURE:145:ecdsa sig set r s failure
QAT_R_ECKEY_GROUP_PUBKEY_SIG_NULL:146:eckey group pubkey sig null
QAT_R_EC_KEY_GROUP_PRIV_KEY_NULL:147:ec key group priv key null
QAT_R_EC_POINT_RETRIEVE_FAILURE:148:ec point retrieve failure
QAT_R_ENC_OP_DATA_MALLOC_FAILURE:149:enc op data malloc failure
QAT_R_ENGINE_CTRL_CMD_FAILURE:150:engine ctrl cmd failure
QAT_R_ENGINE_INIT_FAILURE:151:engine init failure
QAT_R_ENGINE_NULL:152:engine null
QAT_R_EPOLL_CREATE_FAILURE:153:epoll create failure
QAT_R_EPOLL_CTL_FAILURE:154:epoll ctl failure
QAT_R_EVENTS_MALLOC_FAILURE:155:events malloc failure
QAT_R_FALLBACK_POINTER_NULL:156:fallback pointer null
QAT_R_FIELD_SIZE_INVALID:157:field size invalid
QAT_R_FREE_DH_METH_FAILURE:158:free dh meth failure
QAT_R_FREE_MULTIBUFF_RSA_METH_FAILURE:159:free multibuff rsa meth failure
QAT_R_FREE_QAT_DSA_METH_FAILURE:160:free qat dsa meth failure
QAT_R_FREE_QAT_RSA_METH_FAILURE:161:free qat rsa meth failure
QAT_R_GCM_TAG_VERIFY_FAILURE:162:gcm tag verify failure
QAT_R_GET_FILE_DESCRIPTOR_FAILURE:163:get file descriptor failure
QAT_R_GET_GROUP_FAILURE:164:get group failure
QAT_R_GET_INSTANCE_FAILURE:165:get instance failure
QAT_R_GET_INSTANCE_INFO_FAILURE:166:get instance info failure
QAT_R_GET_NUM_INSTANCE_FAILURE:167:get num instance failure
QAT_R_GET_ORDER_FAILURE:168:get order failure
QAT_R_GET_PQG_FAILURE:169:get pqg failure
QAT_R_GET_PRIV_KEY_FAILURE:170:get priv key failure
QAT_R_GROUP_PRIV_KEY_PUB_KEY_NULL:171:group priv key pub key null
QAT_R_ICP_SAL_USERSTART_FAIL:172:icp sal userstart fail
QAT_R_INITIALIZE_CTX_FAILURE:173:initialize ctx failure
QAT_R_INIT_FAILURE:174:init failure
QAT_R_INPUT_DATA_MALLOC_FAILURE:175:input data malloc failure
QAT_R_INPUT_PARAM_INVALID:176:input param invalid
QAT_R_INSTANCE_HANDLE_MALLOC_FAILURE:177:instance handle malloc failure
QAT_R_INSTANCE_UNAVAILABLE:178:instance unavailable
QAT_R_INVALID_ATTACHED_TAG:179:invalid attached tag
QAT_R_INVALID_CTRL_TYPE:180:invalid ctrl type
QAT_R_INVALID_HASH_DATA:181:invalid hash data
QAT_R_INVALID_INPUT_LENGTH:182:invalid input length
QAT_R_INVALID_INPUT_PARAMETER:183:invalid input parameter
QAT_R_INVALID_IVLEN:184:invalid ivlen
QAT_R_INVALID_LEN:185:invalid len
QAT_R_INVALID_PEER_KEY:186:invalid peer key
QAT_R_INVALID_PRIVATE_KEY:187:invalid private key
QAT_R_INVALID_PTR:188:invalid ptr
QAT_R_INVALID_PTR_IV:189:invalid ptr iv
QAT_R_INVALID_PUB_KEY:190:invalid pub key
QAT_R_INVALID_QCTX_MEMORY:191:invalid qctx memory
QAT_R_INVALID_TAG_LEN:192:invalid tag len
QAT_R_INVALID_TYPE:193:invalid type
QAT_R_IN_KINV_CONVERT_TO_FB_FAILURE:194:in kinv convert to fb failure
QAT_R_IN_R_CONVERT_TO_FB_FAILURE:195:in r convert to fb failure
QAT_R_IPSEC_MGR_NULL:196:ipsec mgr null
QAT_R_IV_ALLOC_FAILURE:197:iv alloc failure
QAT_R_IV_GEN_INVALID:198:iv gen invalid
QAT_R_IV_INVALID:199:iv invalid
QAT_R_IV_LEN_NOT_SUPPORTED:200:iv len not supported
QAT_R_IV_MALLOC_FAILURE:201:iv malloc failure
QAT_R_IV_NULL_PTR_INVALID:202:iv null ptr invalid
QAT_R_IV_NVALID:203:iv nvalid
QAT_R_KEYGEN_FAILURE:204:keygen failure
QAT_R_KEYS_NOT_SET:205:keys not set
QAT_R_KEY_IV_NOT_SET:206:key iv not set
QAT_R_KEY_MALLOC_FAILURE:207:key malloc failure
QAT_R_KEY_NULL:208:key null
QAT_R_K_ALLOCATE_FAILURE:209:k allocate failure
QAT_R_K_CONVERT_TO_FB_FAILURE:210:k convert to fb failure
QAT_R_K_ORDER_CONVERT_TO_FB_FAILURE:211:k order convert to fb failure
QAT_R_K_RAND_GENERATE_FAILURE:212:k rand generate failure
QAT_R_M1_DEDUCT_M2_FAILURE:213:m1 deduct m2 failure
QAT_R_M1_M2_P_Q_QINV_TMP_MALLOC_FAILURE:214:m1 m2 p q qinv tmp malloc failure
QAT_R_MALLOC_FAILURE:215:malloc failure
QAT_R_MAX_RETRIES_EXCEEDED:216:max retries exceeded
QAT_R_MB_FREE_EC_METHOD_FAILURE:217:mb free ec method failure
QAT_R_MB_GET_EC_METHOD_MALLOC_FAILURE:218:mb get ec method malloc failure
QAT_R_MODULO_P_FAILURE:219:modulo p failure
QAT_R_MOD_GET_NEXT_INST_FAIL:220:mod get next inst fail
QAT_R_MOD_LN_MOD_EXP_FAIL:221:mod ln mod exp fail
QAT_R_MOD_SETUP_ASYNC_EVENT_FAIL:222:mod setup async event fail
QAT_R_MULTIPLY_QINV_FAILURE:223:multiply qinv failure
QAT_R_NID_NOT_SUPPORTED:224:nid not supported
QAT_R_N_E_CONVERT_TO_FB_FAILURE:225:n e convert to fb failure
QAT_R_N_E_NULL:226:n e null
QAT_R_OP1_BASE_PDATA_MALLOC_FAILURE:227:op1 base pdata malloc failure
QAT_R_OP2_BASE_PDATA_MALLOC_FAILURE:228:op2 base pdata malloc failure
QAT_R_OPDATA_A_PDATA_MALLOC_FAILURE:229:opdata a pdata malloc failure
QAT_R_OPDATA_DATA_MALLOC_FAILURE:230:opdata data malloc failure
QAT_R_OPDATA_MALLOC_FAILURE:231:opdata malloc failure
QAT_R_OPDATA_PDATA_MALLOC_FAILURE:232:opdata pdata malloc failure
QAT_R_OPDATA_ZPDATA_MALLOC_FAILURE:233:opdata zpdata malloc failure
QAT_R_OPDCRT_NULL:234:opdcrt null
QAT_R_OPDONE_NULL:235:opdone null
QAT_R_OPDPIPE_NULL:236:opdpipe null
QAT_R_ORDER_MALLOC_FAILURE:237:order malloc failure
QAT_R_OUT1_PDATA_MALLOC_FAILURE:238:out1 pdata malloc failure
QAT_R_OUT2_PDATA_MALLOC_FAILURE:239:out2 pdata malloc failure
QAT_R_OUTPUT_BUF_MALLOC_FAILURE:240:output buf malloc failure
QAT_R_OUTPUT_BUF_PDATA_MALLOC_FAILURE:241:output buf pdata malloc failure
QAT_R_OUTX_MALLOC_FAILURE:242:outx malloc failure
QAT_R_OUTX_OUTY_LEN_NULL:243:outx outy len null
QAT_R_OUTY_MALLOC_FAILURE:244:outy malloc failure
QAT_R_PADDING_UNKNOWN:245:padding unknown
QAT_R_POLLING_THREAD_CREATE_FAILURE:246:polling thread create failure
QAT_R_POLLING_THREAD_SIGMASK_FAILURE:247:polling thread sigmask failure
QAT_R_POLL_INSTANCE_FAILURE:248:poll instance failure
QAT_R_POPDATA_A_PDATA_MALLOC_FAILURE:249:popdata a pdata malloc failure
QAT_R_POPDATA_MALLOC_FAILURE:250:popdata malloc failure
QAT_R_POPDATA_PCURVE_MALLOC_FAILURE:251:popdata pcurve malloc failure
QAT_R_PPV_MALLOC_FAILURE:252:ppv malloc failure
QAT_R_PPV_PDATA_MALLOC_FAILURE:253:ppv pdata malloc failure
QAT_R_PRESULTR_MALLOC_FAILURE:254:presultr malloc failure
QAT_R_PRESULTR_PDATA_MALLOC_FAILURE:255:presultr pdata malloc failure
QAT_R_PRESULTS_MALLOC_FAILURE:256:presults malloc failure
QAT_R_PRESULTS_PDATA_MALLOC_FAILURE:257:presults pdata malloc failure
QAT_R_PRESULTX_MALLOC_FAILURE:258:presultx malloc failure
QAT_R_PRESULTX_PDATA_MALLOC_FAILURE:259:presultx pdata malloc failure
QAT_R_PRESULTY_LENGTH_CHECK_FAILURE:260:presulty length check failure
QAT_R_PRESULTY_MALLOC_FAILURE:261:presulty malloc failure
QAT_R_PRESULTY_PDATA_MALLOC_FAILURE:262:presulty pdata malloc failure
QAT_R_PRIV_KEY_DUPLICATE_FAILURE:263:priv key duplicate failure
QAT_R_PRIV_KEY_MALLOC_FAILURE:264:priv key malloc failure
QAT_R_PRIV_KEY_M_XG_YG_A_B_P_CONVERT_TO_FB_FAILURE:265:\
	priv key m xg yg a b p convert to fb failure
QAT_R_PRIV_KEY_NULL:266:priv key null
QAT_R_PRIV_KEY_RAND_GENERATE_FAILURE:267:priv key rand generate failure
QAT_R_PRIV_KEY_XG_YG_A_B_P_CONVERT_TO_FB_FAILURE:268:\
	priv key xg yg a b p convert to fb failure
QAT_R_PRIV_KEY_XP_YP_A_B_P_CONVERT_TO_FB_FAILURE:269:\
	priv key xp yp a b p convert to fb failure
QAT_R_PTHREAD_CREATE_FAILURE:270:pthread create failure
QAT_R_PTHREAD_GETAFFINITY_FAILURE:271:pthread getaffinity failure
QAT_R_PTHREAD_JOIN_FAILURE:272:pthread join failure
QAT_R_PTHREAD_KILL_FAILURE:273:pthread kill failure
QAT_R_PTHREAD_SETAFFINITY_FAILURE:274:pthread setaffinity failure
QAT_R_PUB_KEY_DUPLICATE_FAILURE:275:pub key duplicate failure
QAT_R_PUB_KEY_MALLOC_FAILURE:276:pub key malloc failure
QAT_R_PUB_KEY_NULL:277:pub key null
QAT_R_P_A_B_XG_YG_MALLOC_FAILURE:278:p a b xg yg malloc failure
QAT_R_P_A_B_XG_YG_M_K_R_ORDER_MALLOC_FAILURE:279:\
	p a b xg yg m k r order malloc failure
QAT_R_P_A_B_XG_YG_XP_YP_M_ORDER_FAILURE:280:p a b xg yg xp yp m order failure
QAT_R_P_A_B_XP_YP_FAILURE:281:p a b xp yp failure
QAT_R_P_A_B_XP_YP_MALLOC_FAILURE:282:p a b xp yp malloc failure
QAT_R_P_G_PRIV_KEY_CONVERT_TO_FB_FAILURE:283:p g priv key convert to fb failure
QAT_R_P_PUB_PRIV_KEY_CONVERT_TO_FB_FAILURE:284:\
	p pub priv key convert to fb failure
QAT_R_P_Q_DMP_DMQ_CONVERT_TO_FB_FAILURE:285:p q dmp dmq convert to fb failure
QAT_R_P_Q_DMP_DMQ_IQMP_NULL:286:p q dmp dmq iqmp null
QAT_R_P_Q_G_NULL:287:p q g null
QAT_R_P_Q_G_X_K_CONVERT_TO_FB_FAILURE:288:p q g x k convert to fb failure
QAT_R_P_Q_G_Y_Z_R_S_CONVERT_TO_FB_FAILURE:289:\
	p q g y z r s convert to fb failure
QAT_R_QAT_ALLOC_DH_METH_FAILURE:290:qat alloc dh meth failure
QAT_R_QAT_CREATE_ENGINE_FAILURE:291:qat create engine failure
QAT_R_QAT_ECDSA_DO_SIGN_FAIL:292:qat ecdsa do sign fail
QAT_R_QAT_FREE_EC_METHOD_FAILURE:293:qat free ec method failure
QAT_R_QAT_GET_EC_METHOD_MALLOC_FAILURE:294:qat get ec method malloc failure
QAT_R_QAT_SET_DH_METH_FAILURE:295:qat set dh meth failure
QAT_R_QCTX_CTX_NULL:296:qctx ctx null
QAT_R_QCTX_NULL:297:qctx null
QAT_R_RAND_BYTES_FAILURE:298:rand bytes failure
QAT_R_RAND_FAILURE:299:rand failure
QAT_R_RAND_GENERATE_FAILURE:300:rand generate failure
QAT_R_RESULT_PDATA_ALLOC_FAIL:301:result pdata alloc fail
QAT_R_RETRIEVE_EC_POINT_FAILURE:302:retrieve ec point failure
QAT_R_RETRIEVE_ORDER_FAILURE:303:retrieve order failure
QAT_R_RSA_FROM_TO_NULL:304:rsa from to null
QAT_R_RSA_OUTPUT_BUF_PDATA_MALLOC_FAILURE:305:\
	rsa output buf pdata malloc failure
QAT_R_R_Q_COMPARE_FAILURE:306:r q compare failure
QAT_R_SECRET_KEY_MALLOC_FAILURE:307:secret key malloc failure
QAT_R_SECRET_KEY_PDATA_MALLOC_FAILURE:308:secret key pdata malloc failure
QAT_R_SETUP_ASYNC_EVENT_FAILURE:309:setup async event failure
QAT_R_SET_ADDRESS_TRANSLATION_FAILURE:310:set address translation failure
QAT_R_SET_FILE_DESCRIPTOR_NONBLOCKING_FAILURE:311:\
	set file descriptor nonblocking failure
QAT_R_SET_INSTANCE_FAILURE:312:set instance failure
QAT_R_SET_MULTIBUFF_RSA_METH_FAILURE:313:set multibuff rsa meth failure
QAT_R_SET_NOTIFICATION_CALLBACK_FAILURE:314:set notification callback failure
QAT_R_SET_POLLING_THREAD_AFFINITY_FAILURE:315:\
	set polling thread affinity failure
QAT_R_SET_PRIV_KEY_FAILURE:316:set priv key failure
QAT_R_SET_QAT_DSA_METH_FAILURE:317:set qat dsa meth failure
QAT_R_SET_QAT_RSA_METH_FAILURE:318:set qat rsa meth failure
QAT_R_SET_TAG_INVALID_OP:319:set tag invalid op
QAT_R_SHA3_CTX_NULL:320:sha3 ctx null
QAT_R_SIG_GET_R_S_FAILURE:321:sig get r s failure
QAT_R_SIG_MALLOC_FAILURE:322:sig malloc failure
QAT_R_SSD_MALLOC_FAILURE:323:ssd malloc failure
QAT_R_SSD_NULL:324:ssd null
QAT_R_START_INSTANCE_FAILURE:325:start instance failure
QAT_R_STOP_INSTANCE_FAILURE:326:stop instance failure
QAT_R_SW_GET_COMPUTE_KEY_PFUNC_NULL:327:sw get compute key pfunc null
QAT_R_SW_GET_KEYGEN_PFUNC_NULL:328:sw get keygen pfunc null
QAT_R_SW_GET_SIGN_PFUNC_NULL:329:sw get sign pfunc null
QAT_R_SW_GET_SIGN_SETUP_PFUNC_NULL:330:sw get sign setup pfunc null
QAT_R_SW_GET_SIGN_SIG_PFUNC_NULL:331:sw get sign sig pfunc null
QAT_R_SW_GET_VERIFY_SIG_PFUNC_NULL:332:sw get verify sig pfunc null
QAT_R_SW_METHOD_NULL:333:sw method null
QAT_R_S_NULL:334:s null
QAT_R_S_Q_COMPARE_FAILURE:335:s q compare failure
QAT_R_UNKNOWN_PADDING:336:unknown padding
QAT_R_UNKNOWN_PADDING_TYPE:337:unknown padding type
QAT_R_WAKE_PAUSE_JOB_FAILURE:338:wake pause job failure
QAT_R_X_Y_TX_TY_BN_MALLOC_FAILURE:339:x y tx ty bn malloc failure
QAT_R_X_Y_Z_MALLOC_FAILURE:340:x y z malloc failure
QAT_R_Z_ALLOCATE_FAILURE:341:z allocate failure
