/freebsd/crypto/openssl/crypto/ec/ |
H A D | ec2_smpl.c | 77 if (!BN_copy(dest->field, src->field)) in ossl_ec_GF2m_simple_group_copy() 79 if (!BN_copy(dest->a, src->a)) in ossl_ec_GF2m_simple_group_copy() 81 if (!BN_copy(dest->b, src->b)) in ossl_ec_GF2m_simple_group_copy() 108 if (!BN_copy(group->field, p)) in ossl_ec_GF2m_simple_group_set_curve() 147 if (!BN_copy(p, group->field)) in ossl_ec_GF2m_simple_group_get_curve() 152 if (!BN_copy(a, group->a)) in ossl_ec_GF2m_simple_group_get_curve() 157 if (!BN_copy(b, group->b)) in ossl_ec_GF2m_simple_group_get_curve() 260 if (!BN_copy(dest->X, src->X)) in ossl_ec_GF2m_simple_point_copy() 262 if (!BN_copy(dest->Y, src->Y)) in ossl_ec_GF2m_simple_point_copy() 264 if (!BN_copy(dest->Z, src->Z)) in ossl_ec_GF2m_simple_point_copy() [all …]
|
H A D | ecp_smpl.c | 129 if (!BN_copy(dest->field, src->field)) in ossl_ec_GFp_simple_group_copy() 131 if (!BN_copy(dest->a, src->a)) in ossl_ec_GFp_simple_group_copy() 133 if (!BN_copy(dest->b, src->b)) in ossl_ec_GFp_simple_group_copy() 167 if (!BN_copy(group->field, p)) in ossl_ec_GFp_simple_group_set_curve() 177 } else if (!BN_copy(group->a, tmp_a)) in ossl_ec_GFp_simple_group_set_curve() 207 if (!BN_copy(p, group->field)) in ossl_ec_GFp_simple_group_get_curve() 228 if (!BN_copy(a, group->a)) in ossl_ec_GFp_simple_group_get_curve() 232 if (!BN_copy(b, group->b)) in ossl_ec_GFp_simple_group_get_curve() 280 if (!BN_copy(a, group->a)) in ossl_ec_GFp_simple_group_check_discriminant() 282 if (!BN_copy(b, group->b)) in ossl_ec_GFp_simple_group_check_discriminant() [all …]
|
H A D | ec_lib.c | 243 if (!BN_copy(dest->order, src->order)) in EC_GROUP_copy() 245 if (!BN_copy(dest->cofactor, src->cofactor)) in EC_GROUP_copy() 348 if (!BN_copy(q, group->field)) in ec_guess_cofactor() 411 if (!BN_copy(group->order, order)) in EC_GROUP_set_generator() 416 if (!BN_copy(group->cofactor, cofactor)) in EC_GROUP_set_generator() 451 if (!BN_copy(order, group->order)) in EC_GROUP_get_order() 473 if (!BN_copy(cofactor, group->cofactor)) in EC_GROUP_get_cofactor()
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_gcd.c | 54 if (BN_copy(B, a) == NULL) in bn_mod_inverse_no_branch() 56 if (BN_copy(A, n) == NULL) in bn_mod_inverse_no_branch() 171 if (!BN_copy(R, Y)) in bn_mod_inverse_no_branch() 243 if (BN_copy(B, a) == NULL) in int_bn_mod_inverse() 245 if (BN_copy(A, n) == NULL) in int_bn_mod_inverse() 460 if (!BN_copy(tmp, X)) in int_bn_mod_inverse() 496 if (!BN_copy(R, Y)) in int_bn_mod_inverse() 591 ret = BN_copy(r, in_a) != NULL; in BN_gcd() 596 ret = BN_copy(r, in_b) != NULL; in BN_gcd()
|
H A D | bn_mont.c | 182 if ((t = BN_CTX_get(ctx)) && BN_copy(t, a)) { in bn_from_mont_fixed_top() 195 if (!BN_copy(t1, a)) in bn_from_mont_fixed_top() 273 if (!BN_copy(&(mont->N), mod)) in BN_MONT_CTX_set() 414 if (!BN_copy(&(to->RR), &(from->RR))) in BN_MONT_CTX_copy() 416 if (!BN_copy(&(to->N), &(from->N))) in BN_MONT_CTX_copy() 418 if (!BN_copy(&(to->Ni), &(from->Ni))) in BN_MONT_CTX_copy() 472 if (BN_copy(&ctx->N, modulus) == NULL) in ossl_bn_mont_ctx_set()
|
H A D | bn_sqrt.c | 163 if (!BN_copy(ret, x)) in BN_mod_sqrt() 173 if (!BN_copy(q, p)) in BN_mod_sqrt() 301 if (!BN_copy(ret, x)) in BN_mod_sqrt() 327 if (!BN_copy(t, y)) in BN_mod_sqrt()
|
H A D | bn_kron.c | 41 err = !BN_copy(A, a); in BN_kronecker() 44 err = !BN_copy(B, b); in BN_kronecker()
|
H A D | bn_prime.c | 369 && BN_copy(w1, w) in ossl_bn_miller_rabin_is_prime() 372 && BN_copy(w3, w) in ossl_bn_miller_rabin_is_prime() 423 if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx)) in ossl_bn_miller_rabin_is_prime() 434 if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx)) in ossl_bn_miller_rabin_is_prime() 440 if (!BN_copy(x, z)) in ossl_bn_miller_rabin_is_prime()
|
H A D | bn_div.c | 33 if (BN_copy(rem, m) == NULL) 52 if (BN_copy(D, d) == NULL) 54 if (BN_copy(rem, m) == NULL) 289 if (!BN_copy(sdiv, divisor)) in bn_div_fixed_top()
|
H A D | bn_rsa_fips186_4.c | 141 if (BN_copy(p1, Xp1) == NULL) in bn_rsa_fips186_4_find_aux_prob_prime() 298 if (Xin != NULL && BN_copy(X, Xin) == NULL) in ossl_bn_rsa_fips186_4_derive_prime() 378 if (BN_copy(y1, Y) == NULL in ossl_bn_rsa_fips186_4_derive_prime()
|
H A D | bn_x931p.c | 27 if (!BN_copy(pi, Xpi)) in bn_x931_derive_pi() 124 if (!BN_copy(pm1, p)) in BN_X931_derive_prime_ex()
|
H A D | bn_recp.c | 45 if (BN_is_zero(d) || !BN_copy(&(recp->N), d)) in BN_RECP_CTX_set() 98 if (!BN_copy(r, m)) { in BN_div_recp()
|
H A D | bn_gf2m.c | 581 if (!BN_copy(v, p)) in BN_GF2m_mod_inv_vartime() 709 if (!BN_copy(r, b)) in BN_GF2m_mod_inv_vartime() 876 return (BN_copy(r, a) != NULL); in BN_GF2m_mod_exp_arr() 894 if (!BN_copy(r, u)) in BN_GF2m_mod_exp_arr() 1033 if (!BN_copy(z, a)) in BN_GF2m_mod_solve_quad_arr() 1058 if (!BN_copy(w, rho)) in BN_GF2m_mod_solve_quad_arr() 1089 if (!BN_copy(r, z)) in BN_GF2m_mod_solve_quad_arr()
|
H A D | bn_const.c | 13 #define COPY_BN(dst, src) (dst != NULL) ? BN_copy(dst, &src) : BN_dup(&src)
|
H A D | bn_nist.c | 380 return (r == a) ? 1 : (BN_copy(r, a) != NULL); in BN_nist_mod_192() 517 return (r == a) ? 1 : (BN_copy(r, a) != NULL); in BN_nist_mod_224() 689 return (r == a) ? 1 : (BN_copy(r, a) != NULL); in BN_nist_mod_256() 926 return (r == a) ? 1 : (BN_copy(r, a) != NULL); in BN_nist_mod_384() 1178 return (r == a) ? 1 : (BN_copy(r, a) != NULL); in BN_nist_mod_521()
|
H A D | bn_exp.c | 67 if (BN_copy(v, a) == NULL) in BN_exp() 72 if (BN_copy(rr, a) == NULL) in BN_exp() 87 if (r != rr && BN_copy(r, rr) == NULL) in BN_exp() 209 if (!BN_copy(aa, m)) in BN_mod_exp_recp() 248 if (p_dup == NULL || BN_copy(p_dup, p) == NULL) in BN_mod_exp_recp() 1389 if (p_dup == NULL || BN_copy(p_dup, p) == NULL) in BN_mod_exp_simple()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | BN_copy.pod | 5 BN_copy, BN_dup, BN_with_flags - copy BIGNUMs 11 BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from); 19 BN_copy() copies B<from> to B<to>. BN_dup() creates a new B<BIGNUM> 52 BN_copy() returns B<to> on success, NULL on error. BN_dup() returns
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_gen.c | 124 if (BN_copy(r1, rsa->n) == NULL) in DEFINE_STACK_OF() 366 if (BN_copy(rsa->e, e_value) == NULL) in rsa_multiprime_keygen() 511 if (i > 1 && BN_copy(pinfo->pp, rsa->n) == NULL) in rsa_multiprime_keygen() 513 if (BN_copy(rsa->n, r1) == NULL) in rsa_multiprime_keygen() 581 BN_copy(pinfo->r, tmp); in rsa_multiprime_keygen() 584 tmp2 = BN_copy(pinfo->d, tmp); in rsa_multiprime_keygen() 589 tmp2 = BN_copy(pinfo->t, tmp); in rsa_multiprime_keygen()
|
H A D | rsa_sp800_56b_check.c | 50 && (BN_copy(p1, rsa->p) != NULL) in ossl_rsa_check_crt_components() 53 && (BN_copy(q1, rsa->q) != NULL) in ossl_rsa_check_crt_components() 107 if (!BN_copy(low, &ossl_bn_inv_sqrt_2)) in ossl_rsa_check_prime_factor_range() 159 && (BN_copy(p1, p) != NULL) in ossl_rsa_check_prime_factor()
|
/freebsd/usr.bin/factor/ |
H A D | factor.c | 263 BN_copy(base, rbase); in pollard_pminus1() 270 BN_copy(x, base); in pollard_pminus1() 290 BN_copy(val, num); in pollard_pminus1()
|
/freebsd/crypto/openssl/test/ |
H A D | bntest.c | 164 && TEST_ptr(BN_copy(c, a)) in test_swap() 165 && TEST_ptr(BN_copy(d, b)))) in test_swap() 252 && TEST_ptr(BN_copy(b, a)) in test_sub() 293 && TEST_ptr(BN_copy(b, a)) in test_div_recip() 747 && TEST_ptr(BN_copy(b, BN_value_one())))) in test_gf2m_add() 883 && TEST_true(BN_copy(d, a)) in test_gf2m_sqr() 1168 if (!TEST_true(BN_copy(t, b))) in test_kronecker() 1240 if (!TEST_true(BN_copy(ret, a)) in file_sum() 1243 || !TEST_true(BN_copy(ret, b)) in file_sum() 1246 || !TEST_true(BN_copy(ret, sum)) in file_sum() [all …]
|
H A D | ffc_internal_test.c | 228 BN_copy(g1, p1); in ffc_params_validate_g_unverified_test() 481 if (!TEST_ptr(BN_copy(pub, params->p))) in ffc_public_validate_test() 575 if (!TEST_ptr(BN_copy(priv, params->q))) in ffc_private_validate_test()
|
/freebsd/crypto/openssl/ssl/ |
H A D | tls_srp.c | 279 if (!BN_copy(sc->srp_ctx.N, N)) { in SSL_set_srp_server_param() 288 if (!BN_copy(sc->srp_ctx.g, g)) { in SSL_set_srp_server_param() 297 if (!BN_copy(sc->srp_ctx.s, sa)) { in SSL_set_srp_server_param() 306 if (!BN_copy(sc->srp_ctx.v, v)) { in SSL_set_srp_server_param()
|
/freebsd/contrib/ntp/util/ |
H A D | ntp-keygen.c | 1636 BN_copy(p, q); in gen_mvkey() 1654 BN_copy(s1[j], u); in gen_mvkey() 1663 BN_copy(v, p); in gen_mvkey() 1712 BN_copy(u, q); in gen_mvkey() 1716 BN_copy(w, a[i]); in gen_mvkey() 1821 BN_copy(s, q); in gen_mvkey() 1872 BN_copy(priv_key, biga); in gen_mvkey() 1873 BN_copy(pub_key, b); in gen_mvkey()
|
/freebsd/crypto/openssl/crypto/ffc/ |
H A D | ffc_key_validate.c | 45 if (BN_copy(tmp, params->p) == NULL in ossl_ffc_validate_public_key_partial()
|