Searched refs:modeReg (Results 1 – 5 of 5) sorted by relevance
504 ltc_mode_t modeReg; in ltc_symmetric_alg_state() local524 modeReg = (uint32_t)alg | (uint32_t)enc | (uint32_t)as | (uint32_t)mode; in ltc_symmetric_alg_state()527 base->MD = modeReg; in ltc_symmetric_alg_state()750 ltc_mode_t modeReg; /* read and write LTC mode register */ in ltc_process_message_in_sessions() local762 modeReg = base->MD; in ltc_process_message_in_sessions()764 if (modeReg == 0x00100100u) in ltc_process_message_in_sessions()767 modeReg = 0x00101100u; in ltc_process_message_in_sessions()770 if (modeReg == 0x00100200u) in ltc_process_message_in_sessions()773 modeReg = 0x00101200u; in ltc_process_message_in_sessions()799 base->MD = modeReg; in ltc_process_message_in_sessions()[all …]
80 handle->modeReg = base->MD; in ltc_process_message_in_sessions_EDMA()163 base->MD = handle->modeReg; in ltc_process_message_in_sessions_EDMA()192 handle->modeReg = base->MD; in ltc_process_message_in_sessions_ctr_EDMA()275 base->MD = handle->modeReg; in ltc_process_message_in_sessions_ctr_EDMA()286 ltc_mode_t modeReg; in ltc_process_message_in_sessions_ctr_EDMA() local288 … modeReg = (uint32_t)kLTC_AlgorithmAES | (uint32_t)kLTC_ModeCTR | (uint32_t)kLTC_ModeEncrypt; in ltc_process_message_in_sessions_ctr_EDMA()290 base->MD = modeReg | (uint32_t)kLTC_ModeFinalize; in ltc_process_message_in_sessions_ctr_EDMA()304 base->MD = modeReg | (uint32_t)kLTC_ModeUpdate; in ltc_process_message_in_sessions_ctr_EDMA()
56 uint32_t modeReg; /*!< LTC mode register.*/ member
2513 uint32_t modeReg = 0u; in caam_hash_algo2mode() local2520 modeReg = (uint32_t)kCAAM_AlgorithmAES | (uint32_t)kCAAM_ModeXCBCMAC; in caam_hash_algo2mode()2524 modeReg = (uint32_t)kCAAM_AlgorithmAES | (uint32_t)kCAAM_ModeCMAC; in caam_hash_algo2mode()2528 modeReg = (uint32_t)kCAAM_AlgorithmSHA1; in caam_hash_algo2mode()2532 modeReg = (uint32_t)kCAAM_AlgorithmSHA224; in caam_hash_algo2mode()2536 modeReg = (uint32_t)kCAAM_AlgorithmSHA256; in caam_hash_algo2mode()2540 modeReg = (uint32_t)kCAAM_AlgorithmSHA384; in caam_hash_algo2mode()2544 modeReg = (uint32_t)kCAAM_AlgorithmSHA512; in caam_hash_algo2mode()2552 modeReg |= algState; in caam_hash_algo2mode()2558 return modeReg; in caam_hash_algo2mode()[all …]
2633 cau3_mode_t modeReg; in cau3_pkha_init_mode() local2637 modeReg = (uint32_t)kCAU3_AlgorithmPKHA; in cau3_pkha_init_mode()2638 modeReg |= (uint32_t)params->func; in cau3_pkha_init_mode()2643 cau3_pkha_mode_set_src_reg_copy(&modeReg, params->srcReg); in cau3_pkha_init_mode()2644 cau3_pkha_mode_set_dst_reg_copy(&modeReg, params->dstReg); in cau3_pkha_init_mode()2645 cau3_pkha_mode_set_src_seg_copy(&modeReg, params->srcQuad); in cau3_pkha_init_mode()2646 cau3_pkha_mode_set_dst_seg_copy(&modeReg, params->dstQuad); in cau3_pkha_init_mode()2651 modeReg |= ((uint32_t)params->arithType << 17u); in cau3_pkha_init_mode()2654 modeReg |= ((uint32_t)params->montFormIn << 19u); in cau3_pkha_init_mode()2655 modeReg |= ((uint32_t)params->montFormOut << 18u); in cau3_pkha_init_mode()[all …]