Home
last modified time | relevance | path

Searched refs:BN_mod_mul (Results 1 – 16 of 16) sorted by relevance

/openbsd/lib/libcrypto/dsa/
H A Ddsa_ossl.c156 if (!BN_mod_mul(bxr, b, dsa->priv_key, dsa->q, ctx)) /* bx */ in dsa_do_sign()
158 if (!BN_mod_mul(bxr, bxr, r, dsa->q, ctx)) /* bxr */ in dsa_do_sign()
160 if (!BN_mod_mul(bm, b, m, dsa->q, ctx)) /* bm */ in dsa_do_sign()
164 if (!BN_mod_mul(s, s, kinv, dsa->q, ctx)) /* s = b(m + xr)k^-1 */ in dsa_do_sign()
166 if (!BN_mod_mul(s, s, binv, dsa->q, ctx)) /* s = (m + xr)k^-1 */ in dsa_do_sign()
354 if (!BN_mod_mul(u1, u1, u2, dsa->q, ctx)) in dsa_do_verify()
358 if (!BN_mod_mul(u2, sig->r, u2, dsa->q, ctx)) in dsa_do_verify()
/openbsd/lib/libcrypto/bn/
H A Dbn_mod_sqrt.c180 if (!BN_mod_mul(i, tmp, i, p, ctx)) in bn_mod_sqrt_p_is_5_mod_8()
186 if (!BN_mod_mul(out_sqrt, a, b, p, ctx)) in bn_mod_sqrt_p_is_5_mod_8()
188 if (!BN_mod_mul(out_sqrt, out_sqrt, i, p, ctx)) in bn_mod_sqrt_p_is_5_mod_8()
334 if (!BN_mod_mul(b, a, b, p, ctx)) in bn_mod_sqrt_tonelli_shanks_initialize()
338 if (!BN_mod_mul(x, a, x, p, ctx)) in bn_mod_sqrt_tonelli_shanks_initialize()
438 if (!BN_mod_mul(x, x, t, p, ctx)) in bn_mod_sqrt_tonelli_shanks_update()
446 if (!BN_mod_mul(b, b, y, p, ctx)) in bn_mod_sqrt_tonelli_shanks_update()
H A Dbn_mod.c218 BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_mul() function
254 LCRYPTO_ALIAS(BN_mod_mul);
259 return BN_mod_mul(r, a, a, m, ctx); in BN_mod_sqr()
H A Dbn_exp.c231 if (!BN_mod_mul(d, val[0], val[0], m, ctx)) in BN_mod_exp_simple()
236 !BN_mod_mul(val[i], val[i - 1], d,m, ctx)) in BN_mod_exp_simple()
254 if (!BN_mod_mul(r, r, r, m, ctx)) in BN_mod_exp_simple()
283 if (!BN_mod_mul(r, r, r, m, ctx)) in BN_mod_exp_simple()
288 if (!BN_mod_mul(r, r, val[wvalue >> 1], m, ctx)) in BN_mod_exp_simple()
H A Dbn_bpsw.c81 if (!BN_mod_mul(U, U, V, n, ctx)) in bn_lucas_step()
H A Dbn.h362 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
/openbsd/lib/libcrypto/ecdsa/
H A Decdsa.c464 if (!BN_mod_mul(bxr, b, priv_key, order, ctx)) { in ecdsa_compute_s()
468 if (!BN_mod_mul(bxr, bxr, r, order, ctx)) { in ecdsa_compute_s()
472 if (!BN_mod_mul(be, b, e, order, ctx)) { in ecdsa_compute_s()
481 if (!BN_mod_mul(s, s, kinv, order, ctx)) { in ecdsa_compute_s()
486 if (!BN_mod_mul(s, s, binv, order, ctx)) { in ecdsa_compute_s()
721 if (!BN_mod_mul(u, e, sinv, order, ctx)) { in ecdsa_verify_sig()
725 if (!BN_mod_mul(v, sig->r, sinv, order, ctx)) { in ecdsa_verify_sig()
/openbsd/lib/libcrypto/rsa/
H A Drsa_blinding.c243 ret = BN_mod_mul(n, n, b->A, b->mod, ctx); in BN_BLINDING_convert()
255 return BN_mod_mul(n, n, inv, b->mod, ctx); in BN_BLINDING_invert()
H A Drsa_chk.c153 r = BN_mod_mul(i, key->d, key->e, k, ctx); in RSA_check_key()
/openbsd/lib/libcrypto/sm2/
H A Dsm2_sign.c202 if (!BN_mod_mul(tmp, dA, r, order, ctx)) { in sm2_sig_gen()
212 if (!BN_mod_mul(s, s, tmp, order, ctx)) { in sm2_sig_gen()
/openbsd/lib/libcrypto/hidden/openssl/
H A Dbn.h80 LCRYPTO_USED(BN_mod_mul);
/openbsd/lib/libcrypto/ec/
H A Dec_lib.c615 if (!BN_mod_mul(discriminant, discriminant, a, p, ctx)) in EC_GROUP_check_discriminant()
1041 if (!BN_mod_mul(y, y, x, p, ctx)) in EC_POINT_set_compressed_coordinates()
1053 if (!BN_mod_mul(w, a, x, p, ctx)) in EC_POINT_set_compressed_coordinates()
H A Decp_methods.c447 if (!BN_mod_mul(Z_3, Z_2, Z_1, group->p, ctx)) in ec_point_get_affine_coordinates()
1207 return BN_mod_mul(r, a, b, group->p, ctx); in ec_simple_field_mul()
/openbsd/regress/lib/libcrypto/bn/
H A Dbn_test.c859 CHECK_GOTO(BN_mod_mul(d, a, b, n, ctx)); in test_mont()
949 if (BN_mod_mul(e, a, b, c, ctx)) { in test_mod_mul()
962 if (!BN_mod_mul(e, a, b, c, ctx)) { in test_mod_mul()
H A Dbn_mod_exp.c455 if (!BN_mod_mul(out, fact1, fact2, m, ctx)) in bn_mod_exp2_simple()
/openbsd/lib/libcrypto/
H A DSymbols.list414 BN_mod_mul