Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/crypto/bn/
H A Dbn_sqrt.c152 if (!BN_mod_mul(t, t, y, p, ctx)) in BN_mod_sqrt()
158 if (!BN_mod_mul(x, A, b, p, ctx)) in BN_mod_sqrt()
160 if (!BN_mod_mul(x, x, t, p, ctx)) in BN_mod_sqrt()
282 if (!BN_mod_mul(b, b, A, p, ctx)) in BN_mod_sqrt()
286 if (!BN_mod_mul(x, x, A, p, ctx)) in BN_mod_sqrt()
314 if (!BN_mod_mul(t, t, t, p, ctx)) in BN_mod_sqrt()
333 if (!BN_mod_mul(y, t, t, p, ctx)) in BN_mod_sqrt()
335 if (!BN_mod_mul(x, x, t, p, ctx)) in BN_mod_sqrt()
337 if (!BN_mod_mul(b, b, y, p, ctx)) in BN_mod_sqrt()
H A Dbn_blind.c116 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx) in BN_BLINDING_update()
117 || !BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) in BN_BLINDING_update()
157 ret = BN_mod_mul(n, n, b->A, b->mod, ctx); in BN_BLINDING_convert_ex()
197 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex()
H A Dbn_prime.c414 if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx)) in ossl_bn_miller_rabin_is_prime()
425 if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx)) in ossl_bn_miller_rabin_is_prime()
H A Dbn_exp.c1361 if (!BN_mod_mul(d, val[0], val[0], m, ctx)) in BN_mod_exp_simple()
1366 !BN_mod_mul(val[i], val[i - 1], d, m, ctx)) in BN_mod_exp_simple()
1392 if (!BN_mod_mul(r, r, r, m, ctx)) in BN_mod_exp_simple()
1421 if (!BN_mod_mul(r, r, r, m, ctx)) in BN_mod_exp_simple()
1426 if (!BN_mod_mul(r, r, val[wvalue >> 1], m, ctx)) in BN_mod_exp_simple()
H A Dbn_mod.c207 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_mul() function
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_ossl.c150 if (!BN_mod_mul(tmp, blind, dsa->priv_key, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
152 if (!BN_mod_mul(tmp, tmp, ret->r, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
156 if (!BN_mod_mul(blindm, blind, m, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
164 if (!BN_mod_mul(ret->s, ret->s, kinv, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
170 if (!BN_mod_mul(ret->s, ret->s, blind, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
399 if (!BN_mod_mul(u1, u1, u2, dsa->params.q, ctx)) in dsa_do_verify()
403 if (!BN_mod_mul(u2, r, u2, dsa->params.q, ctx)) in dsa_do_verify()
/freebsd/contrib/ntp/util/
H A Dntp-keygen.c1200 BN_mod_mul(u, u, v, p, ctx); in gen_iffkey()
1229 BN_mod_mul(v, priv_key, r, q, ctx); /* b r mod q */ in gen_iffkey()
1242 BN_mod_mul(v, w, v, p, ctx); /* product mod p */ in gen_iffkey()
1387 BN_mod_mul(k, v, u, n, ctx); in gen_gqkey()
1396 BN_mod_mul(g, g, v, n, ctx); /* u^b (u^-1)^b */ in gen_gqkey()
1430 BN_mod_mul(y, k, y, n, ctx); /* y = k u^r mod n */ in gen_gqkey()
1442 BN_mod_mul(y, v, y, n, ctx); /* v^r y^b mod n */ in gen_gqkey()
1713 BN_mod_mul(v, a[i], x[j], q, ctx); in gen_mvkey()
1741 BN_mod_mul(v, v, a[i], q, ctx); in gen_mvkey()
1743 BN_mod_mul( in gen_mvkey()
[all...]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_sp800_56b_check.c65 && BN_mod_mul(r, rsa->dmp1, rsa->e, p1, ctx) in ossl_rsa_check_crt_components()
68 && BN_mod_mul(r, rsa->dmq1, rsa->e, q1, ctx) in ossl_rsa_check_crt_components()
71 && BN_mod_mul(r, rsa->iqmp, rsa->q, rsa->p, ctx) in ossl_rsa_check_crt_components()
209 && BN_mod_mul(r, rsa->e, rsa->d, lcm, ctx) in ossl_rsa_check_private_exponent()
H A Drsa_chk.c150 if (!BN_mod_mul(i, key->d, key->e, m, ctx)) { in rsa_validate_keypair_multiprime()
/freebsd/crypto/openssl/crypto/srp/
H A Dsrp_lib.c92 if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx)) in SRP_Calc_server_key()
125 || !BN_mod_mul(kv, v, k, N, bn_ctx) in SRP_Calc_B_ex()
236 if (!BN_mod_mul(tmp2, tmp, k, N, bn_ctx)) in SRP_Calc_client_key_ex()
/freebsd/crypto/openssl/doc/man3/
H A DBN_add.pod6 BN_mod_sub, BN_mod_mul, BN_mod_sqr, BN_mod_sqrt, BN_exp, BN_mod_exp, BN_gcd -
34 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
82 BN_mod_mul() multiplies I<a> by I<b> and finds the nonnegative
H A DBN_mod_mul_reciprocal.pod27 L<BN_mod_mul(3)> operation when the operation will be performed
/freebsd/crypto/openssl/crypto/ec/
H A Decp_oct.c65 if (!BN_mod_mul(tmp1, tmp2, x_, group->field, ctx)) in ossl_ec_GFp_simple_set_compressed_coordinates()
81 if (!BN_mod_mul(tmp2, tmp2, x, group->field, ctx)) in ossl_ec_GFp_simple_set_compressed_coordinates()
H A Decdsa_ossl.c459 if (!BN_mod_mul(u1, m, u2, order, ctx)) { in ossl_ecdsa_simple_verify_sig()
464 if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) { in ossl_ecdsa_simple_verify_sig()
H A Decp_smpl.c297 if (!BN_mod_mul(tmp_2, tmp_1, a, p, ctx)) in ossl_ec_GFp_simple_group_check_discriminant()
592 if (!BN_mod_mul(Z_3, Z_2, Z_1, group->field, ctx)) in ossl_ec_GFp_simple_point_get_affine_coordinates()
1368 return BN_mod_mul(r, a, b, group->field, ctx); in ossl_ec_GFp_simple_field_mul()
/freebsd/crypto/openssl/crypto/sm2/
H A Dsm2_sign.c286 || !BN_mod_mul(tmp, dA, r, order, ctx) in sm2_sig_gen()
288 || !BN_mod_mul(s, s, tmp, order, ctx)) { in sm2_sig_gen()
/freebsd/contrib/ntp/ntpd/
H A Dntp_crypto.c2280 BN_mod_mul(bn, priv_key, r, q, bctx); /* b r mod q */ in crypto_bob()
2410 BN_mod_mul(bn, bn, bk, p, bctx); in crypto_iff()
2614 BN_mod_mul(y, k, y, n, bctx); /* k u^r mod n */ in crypto_bob2()
2737 BN_mod_mul(y, v, y, n, bctx); /* v^r y^b mod n */ in crypto_gq()
2964 BN_mod_mul(sp, u, r, p, bctx); in crypto_bob3()
3080 BN_mod_mul(u, u, v, p, bctx); in crypto_mv()
3081 BN_mod_mul(u, u, sp, p, bctx); in crypto_mv()
/freebsd/crypto/openssl/include/openssl/
H A Dbn.h281 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
/freebsd/crypto/openssl/test/
H A Dbntest.c1605 if (!TEST_true(BN_mod_mul(ret, a, b, m, ctx)) in file_modmul()
2272 if (!TEST_false(BN_mod_mul(a, BN_value_one(), BN_value_one(), zero, ctx))) in test_badmod()
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c2139 res = BN_mod_mul((BIGNUM *) d, (const BIGNUM *) a, (const BIGNUM *) b, in crypto_bignum_mulmod()
2567 BN_mod_mul(tmp, tmp, (const BIGNUM *) x, e->prime, e->bnctx) && in crypto_ec_point_compute_y_sqr()
/freebsd/secure/lib/libcrypto/
H A DVersion.map536 BN_mod_mul;
/freebsd/secure/lib/libcrypto/man/man3/
H A DMakefile1039 MLINKS+= BN_add.3 BN_mod_mul.3
/freebsd/crypto/openssl/util/
H A Dlibcrypto.num2444 BN_mod_mul 2496 3_0_0 EXIST::FUNCTION:
/freebsd/crypto/openssl/
H A DCHANGES.md13713 EC_GFp_simple_method() uses the basic BN_mod_mul and BN_mod_sqr
14468 * Change BN_mod_mul so that the result is always non-negative.