Lines Matching refs:MPI

114 static void ec_mod(MPI w, struct mpi_ec_ctx *ec)  in ec_mod()
122 static void ec_addm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm()
128 static void ec_subm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ec) in ec_subm()
136 static void ec_mulm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_mulm()
143 static void ec_mul2(MPI w, MPI u, struct mpi_ec_ctx *ctx) in ec_mul2()
149 static void ec_powm(MPI w, const MPI b, const MPI e, in ec_powm()
160 static void ec_pow2(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow2()
171 static void ec_pow3(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow3()
176 static void ec_invm(MPI x, MPI a, struct mpi_ec_ctx *ctx) in ec_invm()
199 static void ec_addm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm_25519()
221 static void ec_subm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_subm_25519()
242 static void ec_mulm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_mulm_25519()
291 static void ec_mul2_25519(MPI w, MPI u, struct mpi_ec_ctx *ctx) in ec_mul2_25519()
296 static void ec_pow2_25519(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow2_25519()
306 static void ec_addm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm_448()
326 static void ec_subm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_subm_448()
346 static void ec_mulm_448(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_mulm_448()
443 static void ec_mul2_448(MPI w, MPI u, struct mpi_ec_ctx *ctx) in ec_mul2_448()
448 static void ec_pow2_448(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow2_448()
457 void (*addm)(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx);
458 void (*subm)(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx);
459 void (*mulm)(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx);
460 void (*mul2)(MPI w, MPI u, struct mpi_ec_ctx *ctx);
461 void (*pow2)(MPI w, const MPI b, struct mpi_ec_ctx *ctx);
495 MPI tmp; in ec_get_a_is_pminus3()
509 static MPI ec_get_two_inv_p(struct mpi_ec_ctx *ec) in ec_get_two_inv_p()
550 static void mpi_ec_coefficient_normalize(MPI a, MPI p) in mpi_ec_coefficient_normalize()
566 int flags, MPI p, MPI a, MPI b) in mpi_ec_init()
593 MPI p_candidate = mpi_scanval(bad_points_table[i][0]); in mpi_ec_init()
617 MPI f_p; in mpi_ec_init()
678 int mpi_ec_get_affine(MPI x, MPI y, MPI_POINT point, struct mpi_ec_ctx *ctx) in mpi_ec_get_affine()
686 MPI z1, z2, z3; in mpi_ec_get_affine()
723 MPI z; in mpi_ec_get_affine()
1164 MPI_POINT p1, MPI_POINT p2, MPI dif_x, in montgomery_ladder()
1211 MPI scalar, MPI_POINT point, in mpi_ec_mul_point()
1214 MPI x1, y1, z1, k, h, yy; in mpi_ec_mul_point()
1334 MPI z2, z3; in mpi_ec_mul_point()
1401 MPI x, y, w; in mpi_ec_curve_point()
1420 MPI xxx; in mpi_ec_curve_point()