Lines Matching refs:stKey

1041         if(HAL_CRYPTODMA_DMA_KEY_SLOT <= stCfg.stKey.u8KeyIdx)  in _MDrv_CIPHER_DMACalc()
1047 …if(E_CIPHER_KSRC_KL == stCfg.stKey.eKeySrc && FALSE == _CIPHER_Resource[stCfg.stKey.u8KeyIdx % HAL… in _MDrv_CIPHER_DMACalc()
1049 … DEBUG_CIPHER_KEYCTRL(CIPHER_DBG_ERR, "Error:Not used Cipher Id[%u]!", stCfg.stKey.u8KeyIdx); in _MDrv_CIPHER_DMACalc()
1062 …if((stCfg.stKey.u8KeyLen > HAL_CRYPTODMA_KEYLEN_MAX) || (stCfg.stKey.u8IVLen > HAL_CRYPTODMA_KEYLE… in _MDrv_CIPHER_DMACalc()
1094 if(FALSE == HAL_CIPHER_DMA_Set_Key(stCfg.stKey)) in _MDrv_CIPHER_DMACalc()
1101 HAL_CIPHER_DMA_Set_IV(stCfg.stKey.pu8IVData, stCfg.stKey.u8IVLen); in _MDrv_CIPHER_DMACalc()
2294 if(E_CIPHER_KSRC_KL == _CIPHER_Resource[u32CipherId].stConfig.stKey.eKeySrc) in MDrv_CIPHER_Free()
2296 …ER_Resource[u32CipherId].stConfig.u32CAVid, _CIPHER_Resource[u32CipherId].stConfig.stKey.u8KeyIdx)) in MDrv_CIPHER_Free()
2366 if(0 != stCfg.stKey.eKeySrc || 0 != stCfg.stKey.u8KeyIdx || NULL != stCfg.stKey.pu8KeyData) in MDrv_CIPHER_DMAConfigure()
2368 if(E_CIPHER_KSRC_CPU == stCfg.stKey.eKeySrc) in MDrv_CIPHER_DMAConfigure()
2370 if(NULL != stCfg.stKey.pu8KeyData && 0 != stCfg.stKey.u8KeyLen) in MDrv_CIPHER_DMAConfigure()
2373 …memcpy(&_CIPHER_Resource[u32CipherId].u8Key, (MS_U8 *)stCfg.stKey.pu8KeyData, stCfg.stKey.u8KeyLen… in MDrv_CIPHER_DMAConfigure()
2375 _CIPHER_Resource[u32CipherId].stConfig.stKey.eKeySrc = E_CIPHER_KSRC_CPU; in MDrv_CIPHER_DMAConfigure()
2376 … _CIPHER_Resource[u32CipherId].stConfig.stKey.pu8KeyData = _CIPHER_Resource[u32CipherId].u8Key; in MDrv_CIPHER_DMAConfigure()
2377 _CIPHER_Resource[u32CipherId].stConfig.stKey.u8KeyLen = stCfg.stKey.u8KeyLen; in MDrv_CIPHER_DMAConfigure()
2388 if(E_CIPHER_KSRC_KL == stCfg.stKey.eKeySrc) in MDrv_CIPHER_DMAConfigure()
2390 _CIPHER_Resource[u32CipherId].stConfig.stKey.eKeySrc = E_CIPHER_KSRC_KL; in MDrv_CIPHER_DMAConfigure()
2391 _CIPHER_Resource[u32CipherId].stConfig.stKey.u8KeyIdx = (MS_U8)u32CipherId; in MDrv_CIPHER_DMAConfigure()
2395 if(E_CIPHER_KSRC_OTP == stCfg.stKey.eKeySrc) in MDrv_CIPHER_DMAConfigure()
2397 _CIPHER_Resource[u32CipherId].stConfig.stKey.eKeySrc = E_CIPHER_KSRC_OTP; in MDrv_CIPHER_DMAConfigure()
2398 _CIPHER_Resource[u32CipherId].stConfig.stKey.u8KeyIdx = stCfg.stKey.u8KeyIdx; in MDrv_CIPHER_DMAConfigure()
2402 if(E_CIPHER_KSRC_CAIP == stCfg.stKey.eKeySrc) in MDrv_CIPHER_DMAConfigure()
2404 _CIPHER_Resource[u32CipherId].stConfig.stKey.eKeySrc = E_CIPHER_KSRC_CAIP; in MDrv_CIPHER_DMAConfigure()
2410 if(NULL != stCfg.stKey.pu8IVData && 0 != stCfg.stKey.u8IVLen) in MDrv_CIPHER_DMAConfigure()
2413 … memcpy(&_CIPHER_Resource[u32CipherId].u8IV, (MS_U8 *)stCfg.stKey.pu8IVData, stCfg.stKey.u8IVLen); in MDrv_CIPHER_DMAConfigure()
2414 _CIPHER_Resource[u32CipherId].stConfig.stKey.pu8IVData = _CIPHER_Resource[u32CipherId].u8IV; in MDrv_CIPHER_DMAConfigure()
2415 _CIPHER_Resource[u32CipherId].stConfig.stKey.u8IVLen = stCfg.stKey.u8IVLen; in MDrv_CIPHER_DMAConfigure()
2512 HAL_CIPHER_DMA_Set_Key ( stParserCfg.stKey);
2513 HAL_CIPHER_DMA_Set_IV(stParserCfg.stKey.pu8IVData, stParserCfg.stKey.u8IVLen);
3352 stCfg.stKey = _CipherKey; in _MDrv_AESDMA_Start()