Home
last modified time | relevance | path

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

/openssl-master/crypto/bn/
A Dbn_sqrt.c151 if (!BN_mod_mul(t, t, y, p, ctx)) in BN_mod_sqrt()
157 if (!BN_mod_mul(x, A, b, p, ctx)) in BN_mod_sqrt()
159 if (!BN_mod_mul(x, x, t, p, ctx)) in BN_mod_sqrt()
281 if (!BN_mod_mul(b, b, A, p, ctx)) in BN_mod_sqrt()
285 if (!BN_mod_mul(x, x, A, p, ctx)) in BN_mod_sqrt()
316 if (!BN_mod_mul(t, t, t, p, ctx)) in BN_mod_sqrt()
327 if (!BN_mod_mul(y, t, t, p, ctx)) in BN_mod_sqrt()
329 if (!BN_mod_mul(x, x, t, p, ctx)) in BN_mod_sqrt()
331 if (!BN_mod_mul(b, b, y, p, ctx)) in BN_mod_sqrt()
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()
196 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex()
A Dbn_prime.c413 if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx)) in ossl_bn_miller_rabin_is_prime()
424 if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx)) in ossl_bn_miller_rabin_is_prime()
A Dbn_exp.c1319 if (!BN_mod_mul(d, val[0], val[0], m, ctx)) in BN_mod_exp_simple()
1324 !BN_mod_mul(val[i], val[i - 1], d, m, ctx)) in BN_mod_exp_simple()
1342 if (!BN_mod_mul(r, r, r, m, ctx)) in BN_mod_exp_simple()
1371 if (!BN_mod_mul(r, r, r, m, ctx)) in BN_mod_exp_simple()
1376 if (!BN_mod_mul(r, r, val[wvalue >> 1], m, ctx)) in BN_mod_exp_simple()
A Dbn_mod.c197 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_mul() function
/openssl-master/crypto/dsa/
A Ddsa_ossl.c143 if (!BN_mod_mul(tmp, blind, dsa->priv_key, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
145 if (!BN_mod_mul(tmp, tmp, ret->r, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
149 if (!BN_mod_mul(blindm, blind, m, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
157 if (!BN_mod_mul(ret->s, ret->s, kinv, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
163 if (!BN_mod_mul(ret->s, ret->s, blind, dsa->params.q, ctx)) in ossl_dsa_do_sign_int()
383 if (!BN_mod_mul(u1, u1, u2, dsa->params.q, ctx)) in dsa_do_verify()
387 if (!BN_mod_mul(u2, r, u2, dsa->params.q, ctx)) in dsa_do_verify()
/openssl-master/crypto/rsa/
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()
A Drsa_chk.c146 if (!BN_mod_mul(i, key->d, key->e, k, ctx)) { in rsa_validate_keypair_multiprime()
/openssl-master/crypto/srp/
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()
/openssl-master/doc/man3/
A DBN_add.pod6 BN_mod_sub, BN_mod_mul, BN_mod_sqr, BN_exp, BN_mod_exp, BN_gcd -
34 int BN_mod_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, const BIGNUM *m,
80 BN_mod_mul() multiplies I<a> by I<b> and finds the nonnegative
A DBN_mod_mul_reciprocal.pod27 L<BN_mod_mul(3)> operation when the operation will be performed
/openssl-master/crypto/ec/
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()
A Decdsa_ossl.c429 if (!BN_mod_mul(u1, m, u2, order, ctx)) { in ossl_ecdsa_simple_verify_sig()
434 if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) { in ossl_ecdsa_simple_verify_sig()
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()
/openssl-master/crypto/sm2/
A Dsm2_sign.c279 || !BN_mod_mul(tmp, dA, r, order, ctx) in sm2_sig_gen()
281 || !BN_mod_mul(s, s, tmp, order, ctx)) { in sm2_sig_gen()
/openssl-master/include/openssl/
A Dbn.h281 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
/openssl-master/test/
A Dbntest.c1560 if (!TEST_true(BN_mod_mul(ret, a, b, m, ctx)) in file_modmul()
2221 if (!TEST_false(BN_mod_mul(a, BN_value_one(), BN_value_one(), zero, ctx))) in test_badmod()
/openssl-master/util/
A Dlibcrypto.num2444 BN_mod_mul 2496 3_0_0 EXIST::FUNCTION:
/openssl-master/
A DCHANGES.md12780 EC_GFp_simple_method() uses the basic BN_mod_mul and BN_mod_sqr
13535 * Change BN_mod_mul so that the result is always non-negative.

Completed in 58 milliseconds