Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/qat/qat_api/common/crypto/sym/key/lac_sym_key.c
Show First 20 Lines • Show All 792 Lines • ▼ Show 20 Lines | LacSymQat_HashContentDescInit( | ||||
instanceHandle, | instanceHandle, | ||||
&hashSetupData, | &hashSetupData, | ||||
/* point to base of hw setup block */ | /* point to base of hw setup block */ | ||||
(Cpa8U *)pCookie->contentDesc, | (Cpa8U *)pCookie->contentDesc, | ||||
LAC_SYM_KEY_NO_HASH_BLK_OFFSET_QW, | LAC_SYM_KEY_NO_HASH_BLK_OFFSET_QW, | ||||
ICP_QAT_FW_SLICE_DRAM_WR, | ICP_QAT_FW_SLICE_DRAM_WR, | ||||
ICP_QAT_HW_AUTH_MODE0, /* just a plain hash */ | ICP_QAT_HW_AUTH_MODE0, /* just a plain hash */ | ||||
CPA_FALSE, /* Not using sym Constants Table in Shared SRAM | CPA_FALSE, /* Not using sym Constants Table in Shared SRAM | ||||
*/ | */ | ||||
CPA_FALSE, /* not using the optimised Content Desc */ | CPA_FALSE, /* not using the optimised Content Desc */ | ||||
CPA_FALSE, /* Not using the stateful SHA3 Content Desc */ | |||||
NULL, | NULL, | ||||
&hashBlkSizeInBytes); | &hashBlkSizeInBytes); | ||||
/* Populate the Req param LW 14-26 */ | /* Populate the Req param LW 14-26 */ | ||||
LacSymQat_KeyMgfRequestPopulate( | LacSymQat_KeyMgfRequestPopulate( | ||||
&keyGenReqHdr, | &keyGenReqHdr, | ||||
&keyGenReqMid, | &keyGenReqMid, | ||||
pKeyGenMgfOpData->seedBuffer.dataLenInBytes, | pKeyGenMgfOpData->seedBuffer.dataLenInBytes, | ||||
▲ Show 20 Lines • Show All 734 Lines • ▼ Show 20 Lines | LacSymQat_HashContentDescInit( | ||||
&keyGenReqFtr, | &keyGenReqFtr, | ||||
instanceHandle, | instanceHandle, | ||||
&hashSetupData, | &hashSetupData, | ||||
pCookie | pCookie | ||||
->contentDesc, /* Pointer to base of hw setup block */ | ->contentDesc, /* Pointer to base of hw setup block */ | ||||
LAC_SYM_KEY_NO_HASH_BLK_OFFSET_QW, | LAC_SYM_KEY_NO_HASH_BLK_OFFSET_QW, | ||||
ICP_QAT_FW_SLICE_DRAM_WR, | ICP_QAT_FW_SLICE_DRAM_WR, | ||||
qatHashMode, | qatHashMode, | ||||
CPA_FALSE, /* Not using sym Constants Table in SRAM */ | CPA_FALSE, /* Not using sym Constants Table in Shared SRAM | ||||
CPA_FALSE, /* Not using the optimised content Desc */ | */ | ||||
NULL, /* Precompute data */ | CPA_FALSE, /* not using the optimised content Desc */ | ||||
CPA_FALSE, /* Not using the stateful SHA3 Content Desc */ | |||||
NULL, /* precompute data */ | |||||
&hashBlkSizeInBytes); | &hashBlkSizeInBytes); | ||||
/* SSL3 */ | /* SSL3 */ | ||||
if (ICP_QAT_FW_LA_CMD_SSL3_KEY_DERIVE == lacCmdId) { | if (ICP_QAT_FW_LA_CMD_SSL3_KEY_DERIVE == lacCmdId) { | ||||
CpaCyKeyGenSslOpData *pKeyGenSslOpData = | CpaCyKeyGenSslOpData *pKeyGenSslOpData = | ||||
(CpaCyKeyGenSslOpData *)pKeyGenSslTlsOpData; | (CpaCyKeyGenSslOpData *)pKeyGenSslTlsOpData; | ||||
Cpa8U *pLabel = NULL; | Cpa8U *pLabel = NULL; | ||||
Cpa32U labelLen = 0; | Cpa32U labelLen = 0; | ||||
▲ Show 20 Lines • Show All 1,458 Lines • Show Last 20 Lines |