• Home
  • Raw
  • Download

Lines Matching refs:felem

132 typedef limb felem[NLIMBS];
142 static void bin66_to_felem(felem out, const u8 in[66])
159 static void felem_to_bin66(u8 out[66], const felem in)
174 static int BN_to_felem(felem out, const BIGNUM *bn)
193 static BIGNUM *felem_to_BN(BIGNUM *out, const felem in)
205 static void felem_one(felem out)
218 static void felem_assign(felem out, const felem in)
232 static void felem_sum64(felem out, const felem in)
246 static void felem_scalar(felem out, const felem in, limb scalar)
260 static void felem_scalar64(felem out, limb scalar)
294 static void felem_neg(felem out, const felem in)
318 static void felem_diff64(felem out, const felem in)
344 static void felem_diff_128_64(largefelem out, const felem in)
403 static void felem_square(largefelem out, const felem in)
405 felem inx2, inx4;
487 static void felem_mul(largefelem out, const felem in1, const felem in2)
489 felem in2x2;
602 static void felem_reduce(felem out, const largefelem in)
677 static void felem_square_reduce(felem out, const felem in)
684 static void felem_mul_reduce(felem out, const felem in1, const felem in2)
699 static void felem_inv(felem out, const felem in)
701 felem ftmp, ftmp2, ftmp3, ftmp4;
800 static const felem kPrime = {
812 static limb felem_is_zero(const felem in)
814 felem ftmp;
890 static void felem_contract(felem out, const felem in)
1036 point_double(felem x_out, felem y_out, felem z_out,
1037 const felem x_in, const felem y_in, const felem z_in)
1040 felem delta, gamma, beta, alpha, ftmp, ftmp2;
1134 static void copy_conditional(felem out, const felem in, limb mask)
1154 static void point_add(felem x3, felem y3, felem z3,
1155 const felem x1, const felem y1, const felem z1,
1156 const int mixed, const felem x2, const felem y2,
1157 const felem z2)
1159 felem ftmp, ftmp2, ftmp3, ftmp4, ftmp5, ftmp6, x_out, y_out, z_out;
1378 static const felem gmul[16][3] = {
1495 const felem pre_comp[][3], felem out[3])
1530 static void batch_mul(felem x_out, felem y_out, felem z_out,
1533 const int mixed, const felem pre_comp[][17][3],
1534 const felem g_pre_comp[16][3])
1538 felem nq[3], tmp[4];
1572 memcpy(nq, tmp, 3 * sizeof(felem));
1602 memcpy(nq, tmp, 3 * sizeof(felem));
1615 felem g_pre_comp[16][3];
1788 felem z1, z2, x_in, y_in, x_out, y_out;
1828 static void make_points_affine(size_t num, felem points[][3],
1829 felem tmp_felems[])
1837 sizeof(felem),
1872 felem (*pre_comp)[17][3] = NULL;
1873 felem *tmp_felems = NULL;
1878 felem x_in, y_in, z_in, x_out, y_out, z_out;
1880 felem(*g_pre_comp)[3] = NULL;
1900 g_pre_comp = (felem(*)[3]) gmul;
1989 memcpy(pre_comp[i][1][0], x_out, sizeof(felem));
1990 memcpy(pre_comp[i][1][1], y_out, sizeof(felem));
1991 memcpy(pre_comp[i][1][2], z_out, sizeof(felem));
2034 mixed, (const felem(*)[17][3])pre_comp,
2035 (const felem(*)[3])g_pre_comp);
2040 NULL, mixed, (const felem(*)[17][3])pre_comp, NULL);
2070 felem tmp_felems[16];