/openssl-master/crypto/ec/ |
A D | ec2_smpl.c | 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() 300 if (!BN_copy(point->X, x)) in ossl_ec_GF2m_simple_point_set_affine_coordinates() 303 if (!BN_copy(point->Y, y)) in ossl_ec_GF2m_simple_point_set_affine_coordinates() 398 if (!BN_copy(x0, a->X)) in ossl_ec_GF2m_simple_add() 400 if (!BN_copy(y0, a->Y)) in ossl_ec_GF2m_simple_add() 407 if (!BN_copy(x1, b->X)) in ossl_ec_GF2m_simple_add() 409 if (!BN_copy(y1, b->Y)) in ossl_ec_GF2m_simple_add() 660 if (!BN_copy(point->X, x)) in ossl_ec_GF2m_simple_make_affine() [all …]
|
A D | ecp_smpl.c | 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() 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() 660 if (!BN_copy(n1, a->X)) in ossl_ec_GFp_simple_add() 662 if (!BN_copy(n2, a->Y)) in ossl_ec_GFp_simple_add() 682 if (!BN_copy(n3, b->X)) in ossl_ec_GFp_simple_add() 684 if (!BN_copy(n4, b->Y)) in ossl_ec_GFp_simple_add() 736 if (!BN_copy(r->Z, n5)) in ossl_ec_GFp_simple_add() [all …]
|
A D | ec_lib.c | 238 if (!BN_copy(dest->order, src->order)) in EC_GROUP_copy() 240 if (!BN_copy(dest->cofactor, src->cofactor)) in EC_GROUP_copy() 345 if (!BN_copy(q, group->field)) in ec_guess_cofactor() 408 if (!BN_copy(group->order, order)) in EC_GROUP_set_generator() 413 if (!BN_copy(group->cofactor, cofactor)) in EC_GROUP_set_generator() 448 if (!BN_copy(order, group->order)) in EC_GROUP_get_order() 470 if (!BN_copy(cofactor, group->cofactor)) in EC_GROUP_get_cofactor()
|
A D | ecp_mont.c | 297 if (!BN_copy(r, group->field_data2)) in ossl_ec_GFp_mont_field_set_to_one()
|
/openssl-master/crypto/bn/ |
A D | bn_gcd.c | 52 if (BN_copy(B, a) == NULL) in bn_mod_inverse_no_branch() 54 if (BN_copy(A, n) == NULL) in bn_mod_inverse_no_branch() 169 if (!BN_copy(R, Y)) in bn_mod_inverse_no_branch() 240 if (BN_copy(B, a) == NULL) in int_bn_mod_inverse() 242 if (BN_copy(A, n) == NULL) in int_bn_mod_inverse() 457 if (!BN_copy(tmp, X)) in int_bn_mod_inverse() 493 if (!BN_copy(R, Y)) in int_bn_mod_inverse() 557 ret = BN_copy(r, in_a) != NULL; in BN_gcd() 562 ret = BN_copy(r, in_b) != NULL; in BN_gcd()
|
A D | bn_sqrt.c | 162 if (!BN_copy(ret, x)) in BN_mod_sqrt() 172 if (!BN_copy(q, p)) in BN_mod_sqrt() 300 if (!BN_copy(ret, x)) in BN_mod_sqrt() 321 if (!BN_copy(t, y)) in BN_mod_sqrt()
|
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() 275 if (!BN_copy(&(mont->N), mod)) in BN_MONT_CTX_set() 416 if (!BN_copy(&(to->RR), &(from->RR))) in BN_MONT_CTX_copy() 418 if (!BN_copy(&(to->N), &(from->N))) in BN_MONT_CTX_copy() 420 if (!BN_copy(&(to->Ni), &(from->Ni))) in BN_MONT_CTX_copy()
|
A D | bn_kron.c | 41 err = !BN_copy(A, a); in BN_kronecker() 44 err = !BN_copy(B, b); in BN_kronecker()
|
A D | bn_rsa_fips186_4.c | 111 if (BN_copy(p1, Xp1) == NULL) in bn_rsa_fips186_4_find_aux_prob_prime() 267 if (Xin != NULL && BN_copy(X, Xin) == NULL) in ossl_bn_rsa_fips186_4_derive_prime() 332 if (BN_copy(y1, Y) == NULL in ossl_bn_rsa_fips186_4_derive_prime()
|
A D | bn_prime.c | 359 && BN_copy(w1, w) in ossl_bn_miller_rabin_is_prime() 362 && BN_copy(w3, w) in ossl_bn_miller_rabin_is_prime() 413 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() 430 if (!BN_copy(x, z)) in ossl_bn_miller_rabin_is_prime()
|
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()
|
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()
|
A D | bn_recp.c | 47 if (!BN_copy(&(recp->N), d)) in BN_RECP_CTX_set() 100 if (!BN_copy(r, m)) { in BN_div_recp()
|
A D | bn_const.c | 13 #define COPY_BN(dst, src) (dst != NULL) ? BN_copy(dst, &src) : BN_dup(&src)
|
A D | bn_gf2m.c | 584 if (!BN_copy(v, p)) in BN_GF2m_mod_inv_vartime() 712 if (!BN_copy(r, b)) in BN_GF2m_mod_inv_vartime() 873 return (BN_copy(r, a) != NULL); in BN_GF2m_mod_exp_arr() 891 if (!BN_copy(r, u)) in BN_GF2m_mod_exp_arr() 1034 if (!BN_copy(z, a)) in BN_GF2m_mod_solve_quad_arr() 1059 if (!BN_copy(w, rho)) in BN_GF2m_mod_solve_quad_arr() 1090 if (!BN_copy(r, z)) in BN_GF2m_mod_solve_quad_arr()
|
A D | bn_nist.c | 348 return (r == a) ? 1 : (BN_copy(r, a) != NULL); in BN_nist_mod_192() 493 return (r == a) ? 1 : (BN_copy(r, a) != NULL); in BN_nist_mod_224() 674 return (r == a) ? 1 : (BN_copy(r, a) != NULL); in BN_nist_mod_256() 920 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()
|
A D | bn_exp.c | 58 if (BN_copy(v, a) == NULL) in BN_exp() 63 if (BN_copy(rr, a) == NULL) in BN_exp() 78 if (r != rr && BN_copy(r, rr) == NULL) in BN_exp() 199 if (!BN_copy(aa, m)) in BN_mod_exp_recp() 1013 if (!BN_copy(rr, &tmp)) in BN_mod_exp_mont_consttime()
|
A D | bn_sqr.c | 97 if (r != rr && BN_copy(r, rr) == NULL) in bn_sqr_fixed_top()
|
/openssl-master/doc/man3/ |
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
|
/openssl-master/crypto/rsa/ |
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()
|
A D | rsa_gen.c | 171 if (BN_copy(rsa->e, e_value) == NULL) in rsa_multiprime_keygen() 306 if (i > 1 && BN_copy(pinfo->pp, rsa->n) == NULL) in rsa_multiprime_keygen() 308 if (BN_copy(rsa->n, r1) == NULL) in rsa_multiprime_keygen()
|
/openssl-master/test/ |
A D | bntest.c | 168 && TEST_ptr(BN_copy(c, a)) in test_swap() 169 && TEST_ptr(BN_copy(d, b)))) in test_swap() 241 && TEST_ptr(BN_copy(b, a)) in test_sub() 1104 if (!TEST_true(BN_copy(t, b))) in test_kronecker() 1176 if (!TEST_true(BN_copy(ret, a)) in file_sum() 1179 || !TEST_true(BN_copy(ret, b)) in file_sum() 1185 || !TEST_true(BN_copy(ret, a)) in file_sum() 1191 || !TEST_true(BN_copy(ret, b)) in file_sum() 1216 if (!TEST_true(BN_copy(ret, a)) in file_sum() 1242 if (!TEST_true(BN_copy(ret, a)) in file_sum() [all …]
|
A D | ffc_internal_test.c | 227 BN_copy(g1, p1); in ffc_params_validate_g_unverified_test() 482 if (!TEST_ptr(BN_copy(pub, params->p))) in ffc_public_validate_test() 555 if (!TEST_ptr(BN_copy(priv, params->q))) in ffc_private_validate_test()
|
/openssl-master/ssl/ |
A D | tls_srp.c | 253 if (!BN_copy(s->srp_ctx.N, N)) { in SSL_set_srp_server_param() 262 if (!BN_copy(s->srp_ctx.g, g)) { in SSL_set_srp_server_param() 271 if (!BN_copy(s->srp_ctx.s, sa)) { in SSL_set_srp_server_param() 280 if (!BN_copy(s->srp_ctx.v, v)) { in SSL_set_srp_server_param()
|
/openssl-master/crypto/ffc/ |
A D | ffc_key_validate.c | 42 if (BN_copy(tmp, params->p) == NULL in ossl_ffc_validate_public_key_partial()
|