Home
last modified time | relevance | path

Searched refs:cipherAlgorithm (Results 1 – 15 of 15) sorted by relevance

/freebsd-src/sys/dev/qat/qat_api/common/crypto/sym/
H A Dlac_sym_api.c57 #define IS_EXT_ALG_CHAIN_UNSUPPORTED(cipherAlgorithm, \ argument
60 ((((CPA_CY_SYM_CIPHER_ZUC_EEA3 == cipherAlgorithm || \
61 CPA_CY_SYM_CIPHER_SNOW3G_UEA2 == cipherAlgorithm) && \
63 ((CPA_CY_SYM_CIPHER_NULL == cipherAlgorithm || \
64 CPA_CY_SYM_CIPHER_AES_CTR == cipherAlgorithm || \
65 CPA_CY_SYM_CIPHER_ZUC_EEA3 == cipherAlgorithm) && \
67 ((CPA_CY_SYM_CIPHER_NULL == cipherAlgorithm || \
68 CPA_CY_SYM_CIPHER_AES_CTR == cipherAlgorithm || \
69 CPA_CY_SYM_CIPHER_SNOW3G_UEA2 == cipherAlgorithm) && \
158 if (pCipherSetupData->cipherAlgorithm >= in LacSymSession_ParamCheck()
[all …]
H A Dlac_sym_cipher.c68 CpaCySymCipherAlgorithm algorithm = pSessionDesc->cipherAlgorithm; in LacCipher_PerformIvCheck()
224 if (!LAC_CIPHER_IS_NULL(pCipherSetupData->cipherAlgorithm)) { in LacCipher_SessionSetupDataCheck()
228 switch (pCipherSetupData->cipherAlgorithm) { in LacCipher_SessionSetupDataCheck()
436 CpaCySymCipherAlgorithm cipherAlgorithm, in LacCipher_GetCipherSliceType() argument
445 if (LAC_CIPHER_IS_XTS_MODE(cipherAlgorithm) || in LacCipher_GetCipherSliceType()
446 LAC_CIPHER_IS_CHACHA(cipherAlgorithm) || in LacCipher_GetCipherSliceType()
447 LAC_CIPHER_IS_GCM(cipherAlgorithm)) { in LacCipher_GetCipherSliceType()
449 } else if (LAC_CIPHER_IS_CCM(cipherAlgorithm) && in LacCipher_GetCipherSliceType()
452 } else if (LAC_CIPHER_IS_AES(cipherAlgorithm) && in LacCipher_GetCipherSliceType()
453 LAC_CIPHER_IS_CTR_MODE(cipherAlgorithm)) { in LacCipher_GetCipherSliceType()
H A Dlac_sym_alg_chain.c139 switch (pSessionDesc->cipherAlgorithm) { in LacSymCheck_IsPartialSupported()
224 pSessionDesc->cipherAlgorithm, in LacAlgChain_CipherCDBuild_ForOptimisedCD()
257 pSessionDesc->cipherAlgorithm, in LacAlgChain_CipherCDBuild_ForSHRAM()
317 pSessionDesc->cipherAlgorithm, in LacAlgChain_CipherCDBuild()
325 pSessionDesc->cipherAlgorithm, in LacAlgChain_CipherCDBuild()
456 CpaCySymCipherAlgorithm cipher = pSessionDesc->cipherAlgorithm; in LacAlgChain_SessionAADUpdate()
488 if (LAC_CIPHER_IS_ARC4(pSessionDesc->cipherAlgorithm)) { in LacAlgChain_SessionCipherKeyUpdate()
502 cipherSetupData.cipherAlgorithm = pSessionDesc->cipherAlgorithm; in LacAlgChain_SessionCipherKeyUpdate()
593 sessionSetup.cipherSetupData.cipherAlgorithm = in LacAlgChain_SessionAuthKeyUpdate()
594 pSessionDesc->cipherAlgorithm; in LacAlgChain_SessionAuthKeyUpdate()
[all …]
H A Dlac_sym_cb.c158 if (pSessionDesc->cipherAlgorithm == in LacSymCb_ProcessCallbackInternal()
164 } else if (pSessionDesc->cipherAlgorithm == in LacSymCb_ProcessCallbackInternal()
206 pSessionDesc->cipherAlgorithm)) { in LacSymCb_ProcessCallbackInternal()
217 pSessionDesc->cipherAlgorithm)) { in LacSymCb_ProcessCallbackInternal()
439 if (LAC_CIPHER_IS_ARC4(pSessionDesc->cipherAlgorithm)) { in LacSymCb_PendingReqsDequeue()
H A Dlac_sym_dp.c103 if ((CPA_CY_SYM_CIPHER_CHACHA == pSessionDesc->cipherAlgorithm) && in LacDp_EnqueueParamCheck()
147 switch (pSessionDesc->cipherAlgorithm) { in LacDp_EnqueueParamCheck()
159 pSessionDesc->cipherAlgorithm); in LacDp_EnqueueParamCheck()
163 pSessionDesc->cipherAlgorithm) && in LacDp_EnqueueParamCheck()
225 switch (pSessionDesc->cipherAlgorithm) { in LacDp_EnqueueParamCheck()
247 pSessionDesc->cipherAlgorithm) - in LacDp_EnqueueParamCheck()
257 cipher = pSessionDesc->cipherAlgorithm; in LacDp_EnqueueParamCheck()
584 CpaCySymCipherAlgorithm cipher = pSessionDesc->cipherAlgorithm; in LacDp_WriteRingMsgFull()
777 if (CPA_CY_SYM_CIPHER_ARC4 == pSessionDesc->cipherAlgorithm) { in LacDp_WriteRingMsgFull()
843 pSessionDesc->cipherAlgorithm); in LacDp_WriteRingMsgFull()
H A Dlac_sym_queue.c130 if (LAC_CIPHER_IS_ARC4(pSessionDesc->cipherAlgorithm)) { in LacSymQueue_RequestSend()
/freebsd-src/sys/dev/qat/qat_api/common/crypto/sym/qat/
H A Dlac_sym_qat_cipher.c464 Cpa32U cipherAlgorithm, in LacSymQat_CipherCtrlBlockWrite() argument
489 switch (cipherAlgorithm) { in LacSymQat_CipherCtrlBlockWrite()
527 LacSymQat_CipherIvSizeBytesGet(cipherAlgorithm)); in LacSymQat_CipherCtrlBlockWrite()
545 CpaCySymCipherAlgorithm cipherAlgorithm = 0; in LacSymQat_CipherGetCfgData() local
555 cipherAlgorithm = pSession->cipherAlgorithm - 1; in LacSymQat_CipherGetCfgData()
561 *pAlgorithm = icp_qat_alg_info[cipherAlgorithm].algorithm; in LacSymQat_CipherGetCfgData()
562 *pMode = icp_qat_alg_info[cipherAlgorithm].mode; in LacSymQat_CipherGetCfgData()
563 *pDir = icp_qat_alg_info[cipherAlgorithm].dir[cipherDirection]; in LacSymQat_CipherGetCfgData()
565 icp_qat_alg_info[cipherAlgorithm].key_convert[cipherDirection]; in LacSymQat_CipherGetCfgData()
567 if (IS_KEY_DEP_NO != icp_qat_alg_info[cipherAlgorithm].isKeyLenDepend) { in LacSymQat_CipherGetCfgData()
[all …]
H A Dlac_sym_qat.c132 CpaCySymCipherAlgorithm cipherAlgorithm, in LacSymQat_LaPacketCommandFlagSet() argument
138 if (LAC_CIPHER_IS_SM4(cipherAlgorithm) || in LacSymQat_LaPacketCommandFlagSet()
139 LAC_CIPHER_IS_CHACHA(cipherAlgorithm)) { in LacSymQat_LaPacketCommandFlagSet()
153 LAC_CIPHER_IS_ECB_MODE(cipherAlgorithm))) { in LacSymQat_LaPacketCommandFlagSet()
174 if ((LAC_CIPHER_IS_GCM(cipherAlgorithm)) && in LacSymQat_LaPacketCommandFlagSet()
/freebsd-src/sys/dev/qat/qat_api/common/crypto/sym/include/
H A Dlac_sym_qat_cipher.h64 LacSymQat_CipherBlockSizeBytesGet(CpaCySymCipherAlgorithm cipherAlgorithm);
80 Cpa32U LacSymQat_CipherIvSizeBytesGet(CpaCySymCipherAlgorithm cipherAlgorithm);
212 Cpa32U cipherAlgorithm,
H A Dlac_session.h166 CpaCySymCipherAlgorithm cipherAlgorithm; member
352 CpaCySymCipherAlgorithm cipherAlgorithm; member
504 CpaCySymCipherAlgorithm cipherAlgorithm; member
H A Dlac_sym_cipher.h278 CpaStatus LacCipher_PerformParamCheck(CpaCySymCipherAlgorithm cipherAlgorithm,
H A Dlac_sym_qat.h186 CpaCySymCipherAlgorithm cipherAlgorithm,
/freebsd-src/sys/dev/qat/qat/
H A Dqat_ocf.c298 sessionSetupData.cipherSetupData.cipherAlgorithm = in qat_ocf_session_init()
302 sessionSetupData.cipherSetupData.cipherAlgorithm = in qat_ocf_session_init()
306 sessionSetupData.cipherSetupData.cipherAlgorithm = in qat_ocf_session_init()
310 sessionSetupData.cipherSetupData.cipherAlgorithm = in qat_ocf_session_init()
470 sessionSetupData.cipherSetupData.cipherAlgorithm = in qat_ocf_session_init()
/freebsd-src/sys/dev/qat/qat_api/include/lac/
H A Dcpa_cy_sym.h260 CpaCySymCipherAlgorithm cipherAlgorithm; member
/freebsd-src/sys/contrib/openzfs/module/os/linux/zfs/
H A Dqat_crypt.c172 sd.cipherSetupData.cipherAlgorithm = ciper_algorithm; in qat_init_crypt_session_ctx()