Lines Matching refs:params

3856 static void ltc_pkha_default_parms(ltc_pkha_mode_params_t *params)  in ltc_pkha_default_parms()  argument
3858 params->func = (ltc_pkha_func_t)0; in ltc_pkha_default_parms()
3859 params->arithType = kLTC_PKHA_IntegerArith; in ltc_pkha_default_parms()
3860 params->montFormIn = kLTC_PKHA_NormalValue; in ltc_pkha_default_parms()
3861 params->montFormOut = kLTC_PKHA_NormalValue; in ltc_pkha_default_parms()
3862 params->srcReg = kLTC_PKHA_RegAll; in ltc_pkha_default_parms()
3863 params->srcQuad = kLTC_PKHA_Quad0; in ltc_pkha_default_parms()
3864 params->dstReg = kLTC_PKHA_RegAll; in ltc_pkha_default_parms()
3865 params->dstQuad = kLTC_PKHA_Quad0; in ltc_pkha_default_parms()
3866 params->equalTime = kLTC_PKHA_NoTimingEqualized; in ltc_pkha_default_parms()
3867 params->r2modn = kLTC_PKHA_CalcR2; in ltc_pkha_default_parms()
4094 static status_t ltc_pkha_init_mode(LTC_Type *base, const ltc_pkha_mode_params_t *params) in ltc_pkha_init_mode() argument
4101 modeReg |= (uint32_t)params->func; in ltc_pkha_init_mode()
4103 if ((params->func == kLTC_PKHA_CopyMemSizeN) || (params->func == kLTC_PKHA_CopyMemSizeSrc)) in ltc_pkha_init_mode()
4106 ltc_pkha_mode_set_src_reg_copy(&modeReg, params->srcReg); in ltc_pkha_init_mode()
4107 ltc_pkha_mode_set_dst_reg_copy(&modeReg, params->dstReg); in ltc_pkha_init_mode()
4108 ltc_pkha_mode_set_src_seg_copy(&modeReg, params->srcQuad); in ltc_pkha_init_mode()
4109 ltc_pkha_mode_set_dst_seg_copy(&modeReg, params->dstQuad); in ltc_pkha_init_mode()
4114 modeReg |= ((uint32_t)params->arithType << 17u); in ltc_pkha_init_mode()
4117 modeReg |= ((uint32_t)params->montFormIn << 19u); in ltc_pkha_init_mode()
4118 modeReg |= ((uint32_t)params->montFormOut << 18u); in ltc_pkha_init_mode()
4121 modeReg |= ((uint32_t)params->r2modn << 16u); in ltc_pkha_init_mode()
4124 modeReg |= ((uint32_t)params->equalTime << 10u); in ltc_pkha_init_mode()
4138 ltc_pkha_mode_params_t params; in ltc_pkha_modR2() local
4140 ltc_pkha_default_parms(&params); in ltc_pkha_modR2()
4141 params.func = kLTC_PKHA_ArithModR2; in ltc_pkha_modR2()
4142 params.arithType = arithType; in ltc_pkha_modR2()
4145 status = ltc_pkha_init_mode(base, &params); in ltc_pkha_modR2()
4175 ltc_pkha_mode_params_t params; in ltc_pkha_modmul() local
4191 ltc_pkha_default_parms(&params); in ltc_pkha_modmul()
4192 params.func = kLTC_PKHA_ArithModMul; in ltc_pkha_modmul()
4193 params.arithType = arithType; in ltc_pkha_modmul()
4194 params.montFormIn = montIn; in ltc_pkha_modmul()
4195 params.montFormOut = montOut; in ltc_pkha_modmul()
4196 params.equalTime = equalTime; in ltc_pkha_modmul()
4199 status = ltc_pkha_init_mode(base, &params); in ltc_pkha_modmul()
4468 ltc_pkha_mode_params_t params; in LTC_PKHA_ModAdd() local
4484 ltc_pkha_default_parms(&params); in LTC_PKHA_ModAdd()
4485 params.func = kLTC_PKHA_ArithModAdd; in LTC_PKHA_ModAdd()
4486 params.arithType = arithType; in LTC_PKHA_ModAdd()
4489 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ModAdd()
4533 ltc_pkha_mode_params_t params; in LTC_PKHA_ModSub1() local
4546 ltc_pkha_default_parms(&params); in LTC_PKHA_ModSub1()
4547 params.func = kLTC_PKHA_ArithModSub1; in LTC_PKHA_ModSub1()
4550 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ModSub1()
4594 ltc_pkha_mode_params_t params; in LTC_PKHA_ModSub2() local
4597 ltc_pkha_default_parms(&params); in LTC_PKHA_ModSub2()
4598 params.func = kLTC_PKHA_ArithModSub2; in LTC_PKHA_ModSub2()
4601 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ModSub2()
4697 ltc_pkha_mode_params_t params; in LTC_PKHA_ModExp() local
4708 ltc_pkha_default_parms(&params); in LTC_PKHA_ModExp()
4709 params.func = kLTC_PKHA_ArithModExp; in LTC_PKHA_ModExp()
4710 params.arithType = arithType; in LTC_PKHA_ModExp()
4711 params.montFormIn = montIn; in LTC_PKHA_ModExp()
4712 params.equalTime = equalTime; in LTC_PKHA_ModExp()
4715 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ModExp()
4757 ltc_pkha_mode_params_t params; in LTC_PKHA_ModRed() local
4760 ltc_pkha_default_parms(&params); in LTC_PKHA_ModRed()
4761 params.func = kLTC_PKHA_ArithModRed; in LTC_PKHA_ModRed()
4762 params.arithType = arithType; in LTC_PKHA_ModRed()
4765 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ModRed()
4807 ltc_pkha_mode_params_t params; in LTC_PKHA_ModInv() local
4819 ltc_pkha_default_parms(&params); in LTC_PKHA_ModInv()
4820 params.func = kLTC_PKHA_ArithModInv; in LTC_PKHA_ModInv()
4821 params.arithType = arithType; in LTC_PKHA_ModInv()
4824 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ModInv()
4889 ltc_pkha_mode_params_t params; in LTC_PKHA_GCD() local
4892 ltc_pkha_default_parms(&params); in LTC_PKHA_GCD()
4893 params.func = kLTC_PKHA_ArithGcd; in LTC_PKHA_GCD()
4894 params.arithType = arithType; in LTC_PKHA_GCD()
4897 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_GCD()
4940 ltc_pkha_mode_params_t params; in LTC_PKHA_PrimalityTest() local
4943 ltc_pkha_default_parms(&params); in LTC_PKHA_PrimalityTest()
4944 params.func = kLTC_PKHA_ArithPrimalityTest; in LTC_PKHA_PrimalityTest()
4946 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_PrimalityTest()
4990 ltc_pkha_mode_params_t params; in LTC_PKHA_ECC_PointAdd() local
4994 ltc_pkha_default_parms(&params); in LTC_PKHA_ECC_PointAdd()
4995 params.func = kLTC_PKHA_ArithEccAdd; in LTC_PKHA_ECC_PointAdd()
4996 params.arithType = arithType; in LTC_PKHA_ECC_PointAdd()
4997 params.r2modn = (R2modN != NULL) ? kLTC_PKHA_InputR2 : kLTC_PKHA_CalcR2; in LTC_PKHA_ECC_PointAdd()
5029 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ECC_PointAdd()
5067 ltc_pkha_mode_params_t params; in LTC_PKHA_ECC_PointDouble() local
5071 ltc_pkha_default_parms(&params); in LTC_PKHA_ECC_PointDouble()
5072 params.func = kLTC_PKHA_ArithEccDouble; in LTC_PKHA_ECC_PointDouble()
5073 params.arithType = arithType; in LTC_PKHA_ECC_PointDouble()
5098 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ECC_PointDouble()
5148 ltc_pkha_mode_params_t params; in LTC_PKHA_ECC_PointMul() local
5152 ltc_pkha_default_parms(&params); in LTC_PKHA_ECC_PointMul()
5153 params.func = kLTC_PKHA_ArithEccMul; in LTC_PKHA_ECC_PointMul()
5154 params.equalTime = equalTime; in LTC_PKHA_ECC_PointMul()
5155 params.arithType = arithType; in LTC_PKHA_ECC_PointMul()
5156 params.r2modn = (R2modN != NULL) ? kLTC_PKHA_InputR2 : kLTC_PKHA_CalcR2; in LTC_PKHA_ECC_PointMul()
5189 status = ltc_pkha_init_mode(base, &params); in LTC_PKHA_ECC_PointMul()