Home
last modified time | relevance | path

Searched refs:precomp (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/common/crypto/ecc/
H A Decl_mult.c174 mp_int precomp[4][4][2]; in ec_pts_mul_simul_w2() local
194 MP_DIGITS(&precomp[i][j][0]) = 0; in ec_pts_mul_simul_w2()
195 MP_DIGITS(&precomp[i][j][1]) = 0; in ec_pts_mul_simul_w2()
200 MP_CHECKOK( mp_init_size(&precomp[i][j][0], in ec_pts_mul_simul_w2()
202 MP_CHECKOK( mp_init_size(&precomp[i][j][1], in ec_pts_mul_simul_w2()
214 field_enc(px, &precomp[1][0][0], group->meth)); in ec_pts_mul_simul_w2()
216 field_enc(py, &precomp[1][0][1], group->meth)); in ec_pts_mul_simul_w2()
218 MP_CHECKOK(mp_copy(px, &precomp[1][0][0])); in ec_pts_mul_simul_w2()
219 MP_CHECKOK(mp_copy(py, &precomp[1][0][1])); in ec_pts_mul_simul_w2()
221 MP_CHECKOK(mp_copy(&group->genx, &precomp[0][1][0])); in ec_pts_mul_simul_w2()
[all …]
H A Decp_jac.c339 mp_int precomp[16][2], rz; in ec_GFp_pt_mul_jac() local
344 MP_DIGITS(&precomp[i][0]) = 0; in ec_GFp_pt_mul_jac()
345 MP_DIGITS(&precomp[i][1]) = 0; in ec_GFp_pt_mul_jac()
353 MP_CHECKOK(mp_init(&precomp[i][0])); in ec_GFp_pt_mul_jac()
354 MP_CHECKOK(mp_init(&precomp[i][1])); in ec_GFp_pt_mul_jac()
358 mp_zero(&precomp[0][0]); in ec_GFp_pt_mul_jac()
359 mp_zero(&precomp[0][1]); in ec_GFp_pt_mul_jac()
360 MP_CHECKOK(mp_copy(px, &precomp[1][0])); in ec_GFp_pt_mul_jac()
361 MP_CHECKOK(mp_copy(py, &precomp[1][1])); in ec_GFp_pt_mul_jac()
364 point_add(&precomp[1][0], &precomp[1][1], in ec_GFp_pt_mul_jac()
[all …]
H A Decp_jm.c228 mp_int precomp[16][2], rz, tpx, tpy; in ec_GFp_pt_mul_jm_wNAF() local
239 MP_DIGITS(&precomp[i][0]) = 0; in ec_GFp_pt_mul_jm_wNAF()
240 MP_DIGITS(&precomp[i][1]) = 0; in ec_GFp_pt_mul_jm_wNAF()
256 MP_CHECKOK(mp_init(&precomp[i][0], FLAG(n))); in ec_GFp_pt_mul_jm_wNAF()
257 MP_CHECKOK(mp_init(&precomp[i][1], FLAG(n))); in ec_GFp_pt_mul_jm_wNAF()
264 MP_CHECKOK(mp_copy(px, &precomp[8][0])); in ec_GFp_pt_mul_jm_wNAF()
265 MP_CHECKOK(mp_copy(py, &precomp[8][1])); in ec_GFp_pt_mul_jm_wNAF()
269 point_dbl(&precomp[8][0], &precomp[8][1], &tpx, &tpy, in ec_GFp_pt_mul_jm_wNAF()
275 point_add(&precomp[i][0], &precomp[i][1], &tpx, &tpy, in ec_GFp_pt_mul_jm_wNAF()
276 &precomp[i + 1][0], &precomp[i + 1][1], in ec_GFp_pt_mul_jm_wNAF()
[all …]