/freebsd/sys/dev/qat/qat_api/common/crypto/sym/ |
H A D | lac_sym_alg_chain.c | 133 lac_session_desc_t *pSessionDesc) in LacSymCheck_IsPartialSupported() argument 139 switch (pSessionDesc->cipherAlgorithm) { in LacSymCheck_IsPartialSupported() 152 switch (pSessionDesc->hashAlgorithm) { in LacSymCheck_IsPartialSupported() 170 switch (pSessionDesc->symOperation) { in LacSymCheck_IsPartialSupported() 188 if (ICP_QAT_FW_LA_USE_UCS_SLICE_TYPE == pSessionDesc->cipherSliceType) { in LacSymCheck_IsPartialSupported() 194 pSessionDesc->isPartialSupported = isPartialSupported; in LacSymCheck_IsPartialSupported() 200 lac_session_desc_t *pSessionDesc, in LacAlgChain_CipherCDBuild_ForOptimisedCD() argument 216 pSessionDesc, in LacAlgChain_CipherCDBuild_ForOptimisedCD() 219 pSessionDesc->cipherSliceType, in LacAlgChain_CipherCDBuild_ForOptimisedCD() 223 LacSymQat_CipherCtrlBlockWrite(&(pSessionDesc->shramReqCacheFtr), in LacAlgChain_CipherCDBuild_ForOptimisedCD() [all …]
|
H A D | lac_sym_dp.c | 69 lac_session_desc_t *pSessionDesc = NULL; in LacDp_EnqueueParamCheck() local 83 pSessionDesc = LAC_SYM_SESSION_DESC_FROM_CTX_GET(pRequest->sessionCtx); in LacDp_EnqueueParamCheck() 84 if (NULL == pSessionDesc) { in LacDp_EnqueueParamCheck() 87 pSessionDesc = LAC_SYM_SESSION_DESC_FROM_CTX_GET( in LacDp_EnqueueParamCheck() 89 } while (NULL == pSessionDesc); in LacDp_EnqueueParamCheck() 91 if (NULL == pSessionDesc) { in LacDp_EnqueueParamCheck() 96 if (CPA_FALSE == pSessionDesc->isDPSession) { in LacDp_EnqueueParamCheck() 103 if ((CPA_CY_SYM_CIPHER_CHACHA == pSessionDesc->cipherAlgorithm) && in LacDp_EnqueueParamCheck() 104 (CPA_CY_SYM_HASH_POLY == pSessionDesc->hashAlgorithm) && in LacDp_EnqueueParamCheck() 105 (CPA_CY_SYM_OP_ALGORITHM_CHAINING == pSessionDesc->symOperation)) { in LacDp_EnqueueParamCheck() [all …]
|
H A D | lac_sym_cb.c | 66 LacSymCb_CleanUserData(const lac_session_desc_t *pSessionDesc, in LacSymCb_CleanUserData() argument 74 authTagLen = pSessionDesc->hashResultSize; in LacSymCb_CleanUserData() 90 if ((CPA_TRUE != pSessionDesc->digestIsAppended) && in LacSymCb_CleanUserData() 119 lac_session_desc_t *pSessionDesc) in LacSymCb_ProcessCallbackInternal() argument 133 operationType = pSessionDesc->symOperation; in LacSymCb_ProcessCallbackInternal() 143 if (((SPC == pSessionDesc->singlePassState) || in LacSymCb_ProcessCallbackInternal() 145 (CPA_TRUE == pSessionDesc->digestVerify) && in LacSymCb_ProcessCallbackInternal() 158 if (pSessionDesc->cipherAlgorithm == in LacSymCb_ProcessCallbackInternal() 160 LacSymCb_CleanUserData(pSessionDesc, in LacSymCb_ProcessCallbackInternal() 164 } else if (pSessionDesc->cipherAlgorithm == in LacSymCb_ProcessCallbackInternal() [all …]
|
H A D | lac_sym_queue.c | 48 lac_session_desc_t *pSessionDesc) in LacSymQueue_RequestSend() argument 57 if ((CPA_FALSE == pSessionDesc->nonBlockingOpsInProgress) || in LacSymQueue_RequestSend() 58 (NULL != pSessionDesc->pRequestQueueTail)) { in LacSymQueue_RequestSend() 59 LAC_SPINLOCK(&pSessionDesc->requestQueueLock); in LacSymQueue_RequestSend() 67 if ((CPA_FALSE == pSessionDesc->nonBlockingOpsInProgress) || in LacSymQueue_RequestSend() 68 (NULL != pSessionDesc->pRequestQueueTail)) { in LacSymQueue_RequestSend() 77 if (NULL != pSessionDesc->pRequestQueueTail) { in LacSymQueue_RequestSend() 80 pSessionDesc->pRequestQueueTail->pNext = in LacSymQueue_RequestSend() 85 pSessionDesc->pRequestQueueHead = pRequest; in LacSymQueue_RequestSend() 88 pSessionDesc->pRequestQueueTail = pRequest; in LacSymQueue_RequestSend() [all …]
|
H A D | lac_sym_api.c | 77 const lac_session_desc_t *const pSessionDesc, 357 const lac_session_desc_t *const pSessionDesc, in LacSymPerform_BufferParamCheck() argument 375 if (!((CPA_CY_SYM_OP_CIPHER != pSessionDesc->symOperation && in LacSymPerform_BufferParamCheck() 376 CPA_CY_SYM_HASH_MODE_PLAIN == pSessionDesc->hashMode) && in LacSymPerform_BufferParamCheck() 379 pSessionDesc->cipherAlgorithm, in LacSymPerform_BufferParamCheck() 380 pSessionDesc->hashAlgorithm)) { in LacSymPerform_BufferParamCheck() 405 if (!((CPA_CY_SYM_OP_CIPHER != pSessionDesc->symOperation && in LacSymPerform_BufferParamCheck() 406 CPA_CY_SYM_HASH_MODE_PLAIN == pSessionDesc->hashMode) && in LacSymPerform_BufferParamCheck() 411 pSessionDesc->cipherAlgorithm, in LacSymPerform_BufferParamCheck() 412 pSessionDesc->hashAlgorithm)) { in LacSymPerform_BufferParamCheck() [all …]
|
H A D | lac_sym_auth_enc.c | 99 LacSymAlgChain_PrepareCCMData(lac_session_desc_t *pSessionDesc, in LacSymAlgChain_PrepareCCMData() argument 123 if (pSessionDesc->aadLenInBytes > 0) { in LacSymAlgChain_PrepareCCMData() 126 (Cpa16U)pSessionDesc->aadLenInBytes); in LacSymAlgChain_PrepareCCMData() 133 pSessionDesc->hashResultSize, in LacSymAlgChain_PrepareCCMData() 159 if (((pSessionDesc->aadLenInBytes + lenOfEncodedLen) % in LacSymAlgChain_PrepareCCMData() 165 ((pSessionDesc->aadLenInBytes + lenOfEncodedLen) % in LacSymAlgChain_PrepareCCMData() 170 lenOfEncodedLen + pSessionDesc->aadLenInBytes; in LacSymAlgChain_PrepareCCMData() 183 LacSymAlgChain_PrepareGCMData(lac_session_desc_t *pSessionDesc, in LacSymAlgChain_PrepareGCMData() argument 188 if ((pSessionDesc->aadLenInBytes % LAC_HASH_AES_GCM_BLOCK_SIZE) != 0) { in LacSymAlgChain_PrepareGCMData() 190 (pSessionDesc->aadLenInBytes % LAC_HASH_AES_GCM_BLOCK_SIZE); in LacSymAlgChain_PrepareGCMData() [all …]
|
H A D | lac_sym_cipher.c | 66 lac_session_desc_t *pSessionDesc = in LacCipher_PerformIvCheck() local 68 CpaCySymCipherAlgorithm algorithm = pSessionDesc->cipherAlgorithm; in LacCipher_PerformIvCheck() 117 *ppIvBuffer = pSessionDesc->cipherPartialOpState; in LacCipher_PerformIvCheck() 178 *ppIvBuffer = pSessionDesc->cipherARC4InitialState; in LacCipher_PerformIvCheck() 183 *ppIvBuffer = pSessionDesc->cipherPartialOpState; in LacCipher_PerformIvCheck()
|
H A D | lac_sym_hash.c | 666 lac_session_desc_t *pSessionDesc, in LacHash_PerformParamCheck() argument 673 CpaBoolean digestIsAppended = pSessionDesc->digestIsAppended; in LacHash_PerformParamCheck() 674 CpaBoolean digestVerify = pSessionDesc->digestVerify; in LacHash_PerformParamCheck() 675 CpaCySymOp symOperation = pSessionDesc->symOperation; in LacHash_PerformParamCheck() 676 CpaCySymHashAlgorithm hashAlgorithm = pSessionDesc->hashAlgorithm; in LacHash_PerformParamCheck() 704 (LacSync_GenBufListVerifyCb == pSessionDesc->pSymCb)) { in LacHash_PerformParamCheck() 721 if ((pSessionDesc->aadLenInBytes > 0) && in LacHash_PerformParamCheck()
|
/freebsd/sys/dev/qat/qat_api/common/compression/ |
H A D | dc_session.c | 127 dc_session_desc_t *pSessionDesc, in dcCompHwBlockPopulate() argument 147 if (CPA_DC_DEFLATE == pSessionDesc->compType) { in dcCompHwBlockPopulate() 165 switch (pSessionDesc->compLevel) { in dcCompHwBlockPopulate() 200 dc_session_desc_t *pSessionDesc, in dcCompHwBlockPopulateGen4() argument 218 switch (pSessionDesc->compType) { in dcCompHwBlockPopulateGen4() 224 if (CPA_DC_HT_FULL_DYNAMIC == pSessionDesc->huffType) { in dcCompHwBlockPopulateGen4() 235 if (CPA_DC_STATEFUL == pSessionDesc->sessState) { in dcCompHwBlockPopulateGen4() 245 switch (pSessionDesc->compLevel) { in dcCompHwBlockPopulateGen4() 270 pSessionDesc->huffType) && in dcCompHwBlockPopulateGen4() 271 (CPA_DC_DEFLATE == pSessionDesc->compType)) { in dcCompHwBlockPopulateGen4() [all …]
|
H A D | dc_datapath.c | 79 dc_session_desc_t *pSessionDesc = in dcUpdateXltOverflowChecksumsGen4() local 85 if (CPA_DC_CRC32 == pSessionDesc->checksumType) { in dcUpdateXltOverflowChecksumsGen4() 91 } else if (CPA_DC_ADLER32 == pSessionDesc->checksumType) { in dcUpdateXltOverflowChecksumsGen4() 106 dc_session_desc_t *pSessionDesc = NULL; in dcCompression_ProcessCallback() local 130 pSessionDesc = DC_SESSION_DESC_FROM_CTX_GET(pCookie->pSessionHandle); in dcCompression_ProcessCallback() 133 isDcDp = pSessionDesc->isDcDp; in dcCompression_ProcessCallback() 138 if (CPA_DC_DIR_DECOMPRESS == pSessionDesc->sessDirection) { in dcCompression_ProcessCallback() 145 pCbFunc = pCookie->pSessionDesc->pCompressionCb; in dcCompression_ProcessCallback() 211 if ((pSessionDesc->compType == CPA_DC_DEFLATE) && in dcCompression_ProcessCallback() 233 (CPA_DC_HT_FULL_DYNAMIC == pSessionDesc->huffType)) { in dcCompression_ProcessCallback() [all …]
|
H A D | dc_header_footer.c | 37 dc_session_desc_t *pSessionDesc = NULL; in cpaDcGenerateHeader() local 44 pSessionDesc = DC_SESSION_DESC_FROM_CTX_GET(pSessionHandle); in cpaDcGenerateHeader() 46 if (NULL == pSessionDesc) { in cpaDcGenerateHeader() 51 if (CPA_DC_DIR_DECOMPRESS == pSessionDesc->sessDirection) { in cpaDcGenerateHeader() 56 if (CPA_DC_DEFLATE == pSessionDesc->compType) { in cpaDcGenerateHeader() 58 if (CPA_DC_CRC32 == pSessionDesc->checksumType) { in cpaDcGenerateHeader() 81 if (CPA_DC_L1 == pSessionDesc->compLevel) in cpaDcGenerateHeader() 83 else if (CPA_DC_L4 >= pSessionDesc->compLevel) in cpaDcGenerateHeader() 95 else if (CPA_DC_ADLER32 == pSessionDesc->checksumType) { in cpaDcGenerateHeader() 119 switch (pSessionDesc->compLevel) { in cpaDcGenerateHeader() [all …]
|
H A D | dc_dp.c | 64 dc_session_desc_t *pSessionDesc = NULL; in dcDataPlaneParamCheck() local 76 pSessionDesc = DC_SESSION_DESC_FROM_CTX_GET(pOpData->pSessionHandle); in dcDataPlaneParamCheck() 77 if (NULL == pSessionDesc) { in dcDataPlaneParamCheck() 82 if (CPA_FALSE == pSessionDesc->isDcDp) { in dcDataPlaneParamCheck() 88 if ((CPA_DC_DIR_COMPRESS == pSessionDesc->sessDirection) && in dcDataPlaneParamCheck() 181 if ((CPA_DC_DIR_COMPRESS == pSessionDesc->sessDirection) || in dcDataPlaneParamCheck() 182 (CPA_DC_DIR_COMBINED == pSessionDesc->sessDirection)) { in dcDataPlaneParamCheck() 183 if (CPA_DC_HT_FULL_DYNAMIC == pSessionDesc->huffType) { in dcDataPlaneParamCheck() 317 dc_session_desc_t *pSessionDesc = NULL; in cpaDcDpInitSession() local 337 pSessionDesc = DC_SESSION_DESC_FROM_CTX_GET(pSessionHandle); in cpaDcDpInitSession() [all …]
|
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/include/ |
H A D | lac_sym_alg_chain.h | 163 lac_session_desc_t *pSessionDesc); 200 lac_session_desc_t *pSessionDesc, 233 CpaStatus LacAlgChain_SessionCipherKeyUpdate(lac_session_desc_t *pSessionDesc, 262 CpaStatus LacAlgChain_SessionAuthKeyUpdate(lac_session_desc_t *pSessionDesc, 291 CpaStatus LacAlgChain_SessionAADUpdate(lac_session_desc_t *pSessionDesc,
|
H A D | lac_sym_qat_cipher.h | 116 LacSymQat_CipherRequestParamsPopulate(lac_session_desc_t *pSessionDesc, 166 void LacSymQat_CipherXTSModeUpdateKeyLen(lac_session_desc_t *pSessionDesc, 294 lac_session_desc_t *pSessionDesc,
|
H A D | lac_sym_auth_enc.h | 43 void LacSymAlgChain_PrepareGCMData(lac_session_desc_t *pSessionDesc, 80 void LacSymAlgChain_PrepareCCMData(lac_session_desc_t *pSessionDesc,
|
H A D | lac_sym_cb.h | 38 CpaStatus LacSymCb_PendingReqsDequeue(lac_session_desc_t *pSessionDesc);
|
H A D | lac_sym_queue.h | 48 lac_session_desc_t *pSessionDesc);
|
H A D | lac_sym_hash.h | 431 lac_session_desc_t *pSessionDesc,
|
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/qat/ |
H A D | lac_sym_qat_cipher.c | 641 lac_session_desc_t *pSessionDesc, in LacSymQat_CipherHwBlockPopulateKeySetup() argument 749 memcpy(pSessionDesc->cipherAesXtsKey1Forward, in LacSymQat_CipherHwBlockPopulateKeySetup() 754 pSessionDesc->cipherAesXtsKey1Forward, in LacSymQat_CipherHwBlockPopulateKeySetup() 757 pSessionDesc->cipherAesXtsKey1Reverse); in LacSymQat_CipherHwBlockPopulateKeySetup() 759 memcpy(pSessionDesc->cipherAesXtsKey2, in LacSymQat_CipherHwBlockPopulateKeySetup() 766 pSessionDesc in LacSymQat_CipherHwBlockPopulateKeySetup() 771 pSessionDesc in LacSymQat_CipherHwBlockPopulateKeySetup() 876 LacSymQat_CipherRequestParamsPopulate(lac_session_desc_t *pSessionDesc, in LacSymQat_CipherRequestParamsPopulate() argument 926 pSessionDesc->cipherSliceType && in LacSymQat_CipherRequestParamsPopulate() 927 LAC_CIPHER_IS_XTS_MODE(pSessionDesc->cipherAlgorithm)) { in LacSymQat_CipherRequestParamsPopulate() [all …]
|
/freebsd/sys/dev/qat/qat/ |
H A D | qat_ocf_utils.c | 68 lac_session_desc_t *pSessionDesc = NULL; in qat_ocf_session_update() local 79 pSessionDesc = in qat_ocf_session_update() 85 LacAlgChain_SessionAADUpdate(pSessionDesc, newAADLength); in qat_ocf_session_update() 92 LacAlgChain_SessionCipherKeyUpdate(pSessionDesc, newCipher); in qat_ocf_session_update() 99 LacAlgChain_SessionAuthKeyUpdate(pSessionDesc, newAuth); in qat_ocf_session_update()
|
/freebsd/sys/dev/qat/qat_api/common/compression/include/ |
H A D | dc_datapath.h | 134 dc_session_desc_t *pSessionDesc; member
|