Home
last modified time | relevance | path

Searched refs:mpi_cmp_ui (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/lib/mpi/
Dmpi-inv.c38 if (!mpi_cmp_ui(a, 0)) in mpi_invm()
40 if (!mpi_cmp_ui(n, 1)) in mpi_invm()
123 } while (mpi_cmp_ui(t3, 0)); /* while t3 != 0 */ in mpi_invm()
Dmpi-cmp.c23 int mpi_cmp_ui(MPI u, unsigned long v) in mpi_cmp_ui() function
42 EXPORT_SYMBOL_GPL(mpi_cmp_ui);
Dec.c680 if (!mpi_cmp_ui(point->z, 0)) in mpi_ec_get_affine()
766 if (!mpi_cmp_ui(point->y, 0) || !mpi_cmp_ui(point->z, 0)) { in dup_point_weierstrass()
959 } else if (!mpi_cmp_ui(z1, 0)) { in add_points_weierstrass()
964 } else if (!mpi_cmp_ui(z2, 0)) { in add_points_weierstrass()
970 int z1_is_one = !mpi_cmp_ui(z1, 1); in add_points_weierstrass()
971 int z2_is_one = !mpi_cmp_ui(z2, 1); in add_points_weierstrass()
998 if (!mpi_cmp_ui(l3, 0)) { in add_points_weierstrass()
999 if (!mpi_cmp_ui(l6, 0)) { in add_points_weierstrass()
1333 if (!mpi_cmp_ui(point->z, 1)) { in mpi_ec_mul_point()
1472 res = !mpi_cmp_ui(w, 1); in mpi_ec_curve_point()
[all …]
Dmpicoder.c571 if (a->sign && mpi_cmp_ui(a, 0)) in mpi_print()
/kernel/linux/linux-5.10/crypto/
Ddh.c121 if (mpi_cmp_ui(y, 1) < 1 || mpi_cmp(y, ctx->p) >= 0) in dh_is_pubkey_valid()
139 ret = mpi_cmp_ui(val, 1); in dh_is_pubkey_valid()
189 if (mpi_cmp_ui(val, 1) < 1) { in dh_compute_value()
Dsm2.c310 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()
317 if (mpi_cmp_ui(t, 0) == 0) in _sm2_verify()
Drsa.c28 if (mpi_cmp_ui(m, 0) < 0 || mpi_cmp(m, key->n) >= 0) in _rsa_enc()
42 if (mpi_cmp_ui(c, 0) < 0 || mpi_cmp(c, key->n) >= 0) in _rsa_dec()
/kernel/linux/linux-5.10/include/linux/
Dmpi.h121 int mpi_cmp_ui(MPI u, ulong v);