Searched refs:mpi_cmp (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.1/lib/mpi/ |
D | mpi-cmp.c | 84 int mpi_cmp(MPI u, MPI v) in mpi_cmp() function 88 EXPORT_SYMBOL_GPL(mpi_cmp);
|
D | ec.c | 501 ec->t.a_is_pminus3 = !mpi_cmp(ec->a, tmp); in ec_get_a_is_pminus3() 594 int match_p = !mpi_cmp(ctx->p, p_candidate); in mpi_ec_init() 623 if (!mpi_cmp(p, f_p)) { in mpi_ec_init() 956 if ((!mpi_cmp(x1, x2)) && (!mpi_cmp(y1, y2)) && (!mpi_cmp(z1, z2))) { in add_points_weierstrass() 1229 if (mpi_cmp(scalar, ctx->p) >= 0) in mpi_ec_mul_point() 1435 if (!mpi_cmp(y, w)) in mpi_ec_curve_point()
|
D | mpi-mod.c | 146 while (mpi_cmp(r, m) >= 0) in mpi_mod_barrett()
|
/Linux-v6.1/crypto/ |
D | sm2.c | 310 if (mpi_cmp_ui(sig_r, 1) < 0 || mpi_cmp(sig_r, ec->n) > 0 || in _sm2_verify() 311 mpi_cmp_ui(sig_s, 1) < 0 || mpi_cmp(sig_s, ec->n) > 0) { in _sm2_verify() 333 if (mpi_cmp(t, sig_r)) in _sm2_verify()
|
D | rsa.c | 34 if (mpi_cmp_ui(m, 0) < 0 || mpi_cmp(m, key->n) >= 0) in _rsa_enc() 54 if (mpi_cmp_ui(c, 0) < 0 || mpi_cmp(c, key->n) >= 0) in _rsa_dec_crt()
|
D | dh.c | 120 if (mpi_cmp_ui(y, 1) < 1 || mpi_cmp(y, ctx->p) >= 0) in dh_is_pubkey_valid() 219 if (!ret && !mpi_cmp(pone, val)) in dh_compute_value()
|
/Linux-v6.1/include/linux/ |
D | mpi.h | 122 int mpi_cmp(MPI u, MPI v);
|