| /NextBSD/crypto/openssl/crypto/bn/ |
| HD | bn_sqrt.c | 198 if (!BN_mod_mul(t, t, y, p, ctx)) in BN_mod_sqrt() 204 if (!BN_mod_mul(x, A, b, p, ctx)) in BN_mod_sqrt() 206 if (!BN_mod_mul(x, x, t, p, ctx)) in BN_mod_sqrt() 328 if (!BN_mod_mul(b, b, A, p, ctx)) in BN_mod_sqrt() 332 if (!BN_mod_mul(x, x, A, p, ctx)) in BN_mod_sqrt() 363 if (!BN_mod_mul(t, t, t, p, ctx)) in BN_mod_sqrt() 374 if (!BN_mod_mul(y, t, t, p, ctx)) in BN_mod_sqrt() 376 if (!BN_mod_mul(x, x, t, p, ctx)) in BN_mod_sqrt() 378 if (!BN_mod_mul(b, b, y, p, ctx)) in BN_mod_sqrt()
|
| HD | bn_blind.c | 209 if (!BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) in BN_BLINDING_update() 211 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx)) in BN_BLINDING_update() 249 if (!BN_mod_mul(n, n, b->A, b->mod, ctx)) in BN_BLINDING_convert_ex() 268 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex() 274 ret = BN_mod_mul(n, n, b->Ai, b->mod, ctx); in BN_BLINDING_invert_ex()
|
| HD | bn_exp.c | 1322 if (!BN_mod_mul(d, val[0], val[0], m, ctx)) in BN_mod_exp_simple() 1327 !BN_mod_mul(val[i], val[i - 1], d, m, ctx)) in BN_mod_exp_simple() 1345 if (!BN_mod_mul(r, r, r, m, ctx)) in BN_mod_exp_simple() 1375 if (!BN_mod_mul(r, r, r, m, ctx)) in BN_mod_exp_simple() 1380 if (!BN_mod_mul(r, r, val[wvalue >> 1], m, ctx)) in BN_mod_exp_simple()
|
| HD | bn_mod.c | 187 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_mul() function
|
| HD | expspeed.c | 291 if (!BN_mod_mul(r, a, b, c, ctx)) in do_mul_exp()
|
| HD | bn_prime.c | 362 if (!BN_mod_mul(w, w, w, a, ctx)) /* w := w^2 mod a */ in witness()
|
| HD | bntest.c | 839 BN_mod_mul(&d, &a, &b, &n, ctx); in test_mont() 913 if (BN_mod_mul(e, a, b, c, ctx)) { in test_mod_mul() 925 if (!BN_mod_mul(e, a, b, c, ctx)) { in test_mod_mul()
|
| /NextBSD/crypto/openssl/crypto/jpake/ |
| HD | jpake.c | 204 BN_mod_mul(t, x, h, ctx->p.q, ctx->ctx); in generate_zkp() 232 BN_mod_mul(t3, t1, t2, ctx->p.p, ctx->ctx); in verify_zkp() 355 BN_mod_mul(t2, t1, ctx->p.gxc, ctx->p.p, ctx->ctx); in JPAKE_STEP2_generate() 357 BN_mod_mul(t1, t2, ctx->p.gxd, ctx->p.p, ctx->ctx); in JPAKE_STEP2_generate() 359 BN_mod_mul(t2, ctx->xb, ctx->secret, ctx->p.q, ctx->ctx); in JPAKE_STEP2_generate() 401 BN_mod_mul(t1, gx, t3, ctx->p.p, ctx->ctx); in compute_key() 427 BN_mod_mul(t1, ctx->p.gxc, t2, ctx->p.p, ctx->ctx); in JPAKE_STEP2_process()
|
| /NextBSD/crypto/openssl/engines/ccgost/ |
| HD | gost_sign.c | 100 BN_mod_mul(tmp, dsa->priv_key, newsig->r, dsa->q, ctx); in gost_do_sign() 101 BN_mod_mul(tmp2, k, md, dsa->q, ctx); in gost_do_sign() 203 BN_mod_mul(z1, sig->s, v, dsa->q, ctx); in gost_do_verify() 205 BN_mod_mul(z2, tmp, v, dsa->p, ctx); in gost_do_verify() 208 BN_mod_mul(tmp3, tmp, tmp2, dsa->p, ctx); in gost_do_verify()
|
| HD | gost2001.c | 226 if(!BN_mod_mul(tmp, priv_key, r, order, ctx) in gost2001_do_sign() 227 || !BN_mod_mul(tmp2, k, e, order, ctx) in gost2001_do_sign() 323 || !BN_mod_mul(z1, sig->s, v, order, ctx) in gost2001_do_verify() 325 || !BN_mod_mul(z2, tmp, v, order, ctx)) { in gost2001_do_verify()
|
| HD | gost2001_keyx.c | 44 BN_mod_mul(p, key, UKM, order, ctx); in VKO_compute_key()
|
| /NextBSD/contrib/ntp/util/ |
| HD | ntp-keygen.c | 1155 BN_mod_mul(u, u, v, dsa->p, ctx); in gen_iffkey() 1183 BN_mod_mul(v, dsa->priv_key, r, dsa->q, ctx); /* b r mod q */ in gen_iffkey() 1196 BN_mod_mul(v, w, v, dsa->p, ctx); /* product mod p */ in gen_iffkey() 1337 BN_mod_mul(k, v, u, rsa->n, ctx); in gen_gqkey() 1346 BN_mod_mul(g, g, v, rsa->n, ctx); /* u^b (u^-1)^b */ in gen_gqkey() 1377 BN_mod_mul(y, k, y, rsa->n, ctx); /* y = k u^r mod n */ in gen_gqkey() 1389 BN_mod_mul(y, v, y, rsa->n, ctx); /* v^r y^b mod n */ in gen_gqkey() 1659 BN_mod_mul(v, a[i], x[j], dsa->q, ctx); in gen_mvkey() 1687 BN_mod_mul(v, v, a[i], dsa->q, ctx); in gen_mvkey() 1689 BN_mod_mul(u, u, v, dsa->p, ctx); in gen_mvkey() [all …]
|
| /NextBSD/crypto/openssl/crypto/dsa/ |
| HD | dsa_ossl.c | 180 if (!BN_mod_mul(&xr, dsa->priv_key, r, dsa->q, ctx)) in dsa_do_sign() 187 if (!BN_mod_mul(s, s, kinv, dsa->q, ctx)) in dsa_do_sign() 374 if (!BN_mod_mul(&u1, &u1, &u2, dsa->q, ctx)) in dsa_do_verify() 378 if (!BN_mod_mul(&u2, sig->r, &u2, dsa->q, ctx)) in dsa_do_verify()
|
| /NextBSD/crypto/openssl/crypto/ecdsa/ |
| HD | ecs_ossl.c | 304 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx)) { in ecdsa_do_sign() 312 if (!BN_mod_mul(s, s, ckinv, order, ctx)) { in ecdsa_do_sign() 418 if (!BN_mod_mul(u1, m, u2, order, ctx)) { in ecdsa_do_verify() 423 if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) { in ecdsa_do_verify()
|
| /NextBSD/crypto/openssl/crypto/srp/ |
| HD | srp_lib.c | 170 if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx)) in SRP_Calc_server_key() 198 !BN_mod_mul(kv, v, k, N, bn_ctx) || in SRP_Calc_B() 277 if (!BN_mod_mul(tmp2, tmp, k, N, bn_ctx)) in SRP_Calc_client_key() 282 if (!BN_mod_mul(tmp3, u, x, N, bn_ctx)) in SRP_Calc_client_key()
|
| /NextBSD/crypto/openssl/doc/crypto/ |
| HD | BN_add.pod | 6 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, 79 BN_mod_mul() multiplies I<a> by I<b> and finds the non-negative 119 BN_add(), BN_sub(), BN_sqr(), BN_div(), BN_mod(), BN_mod_mul(),
|
| HD | BN_mod_mul_reciprocal.pod | 28 L<BN_mod_mul(3)|BN_mod_mul(3)> operation when the operation will be performed
|
| HD | bn.pod | 45 int BN_mod_mul(BIGNUM *ret, BIGNUM *a, BIGNUM *b, const BIGNUM *m,
|
| /NextBSD/crypto/openssl/crypto/ec/ |
| HD | ecp_oct.c | 117 if (!BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) in ec_GFp_simple_set_compressed_coordinates() 133 if (!BN_mod_mul(tmp2, tmp2, x, &group->field, ctx)) in ec_GFp_simple_set_compressed_coordinates()
|
| HD | ecp_smpl.c | 334 if (!BN_mod_mul(tmp_2, tmp_1, a, p, ctx)) in ec_GFp_simple_group_check_discriminant() 629 if (!BN_mod_mul(Z_3, Z_2, Z_1, &group->field, ctx)) in ec_GFp_simple_point_get_affine_coordinates() 1411 return BN_mod_mul(r, a, b, &group->field, ctx); in ec_GFp_simple_field_mul()
|
| /NextBSD/crypto/openssl/crypto/rsa/ |
| HD | rsa_chk.c | 140 r = BN_mod_mul(i, key->d, key->e, k, ctx); in RSA_check_key()
|
| /NextBSD/crypto/openssl/engines/ |
| HD | e_nuron.c | 232 if (!BN_mod_mul(rr, rr, &t, m, ctx)) in nuron_dsa_mod_exp()
|
| HD | e_atalla.c | 572 if (!BN_mod_mul(rr, rr, &t, m, ctx)) in atalla_dsa_mod_exp()
|
| /NextBSD/contrib/ntp/ntpd/ |
| HD | ntp_crypto.c | 2248 BN_mod_mul(bn, dsa->priv_key, r, dsa->q, bctx); /* b r mod q */ in crypto_bob() 2367 BN_mod_mul(bn, bn, bk, dsa->p, bctx); in crypto_iff() 2566 BN_mod_mul(y, k, y, rsa->n, bctx); /* k u^r mod n */ in crypto_bob2() 2685 BN_mod_mul(y, v, y, rsa->n, bctx); /* v^r y^b mod n */ in crypto_gq() 2904 BN_mod_mul(sdsa->p, u, r, dsa->p, bctx); in crypto_bob3() 3011 BN_mod_mul(u, u, v, dsa->p, bctx); in crypto_mv() 3012 BN_mod_mul(u, u, sdsa->p, dsa->p, bctx); in crypto_mv()
|
| /NextBSD/contrib/wpa/src/crypto/ |
| HD | crypto_openssl.c | 1091 res = BN_mod_mul((BIGNUM *) d, (const BIGNUM *) a, (const BIGNUM *) b, in crypto_bignum_mulmod() 1404 BN_mod_mul(tmp, tmp, (const BIGNUM *) x, e->prime, e->bnctx) && in crypto_ec_point_compute_y_sqr() 1405 BN_mod_mul(tmp2, e->a, (const BIGNUM *) x, e->prime, e->bnctx) && in crypto_ec_point_compute_y_sqr()
|