crypto/openssh/moduli.c
335
if (BN_copy(largebase, start) == NULL)
crypto/openssl/crypto/bn/bn_blind.c
148
if (r != NULL && (BN_copy(r, b->Ai) == NULL))
crypto/openssl/crypto/bn/bn_const.c
13
#define COPY_BN(dst, src) (dst != NULL) ? BN_copy(dst, &src) : BN_dup(&src)
crypto/openssl/crypto/bn/bn_div.c
291
if (!BN_copy(sdiv, divisor))
crypto/openssl/crypto/bn/bn_div.c
33
if (BN_copy(rem, m) == NULL)
crypto/openssl/crypto/bn/bn_div.c
52
if (BN_copy(D, d) == NULL)
crypto/openssl/crypto/bn/bn_div.c
54
if (BN_copy(rem, m) == NULL)
crypto/openssl/crypto/bn/bn_exp.c
1373
if (p_dup == NULL || BN_copy(p_dup, p) == NULL)
crypto/openssl/crypto/bn/bn_exp.c
209
if (!BN_copy(aa, m))
crypto/openssl/crypto/bn/bn_exp.c
247
if (p_dup == NULL || BN_copy(p_dup, p) == NULL)
crypto/openssl/crypto/bn/bn_exp.c
67
if (BN_copy(v, a) == NULL)
crypto/openssl/crypto/bn/bn_exp.c
72
if (BN_copy(rr, a) == NULL)
crypto/openssl/crypto/bn/bn_exp.c
87
if (r != rr && BN_copy(r, rr) == NULL)
crypto/openssl/crypto/bn/bn_gcd.c
170
if (!BN_copy(R, Y))
crypto/openssl/crypto/bn/bn_gcd.c
242
if (BN_copy(B, a) == NULL)
crypto/openssl/crypto/bn/bn_gcd.c
244
if (BN_copy(A, n) == NULL)
crypto/openssl/crypto/bn/bn_gcd.c
459
if (!BN_copy(tmp, X))
crypto/openssl/crypto/bn/bn_gcd.c
495
if (!BN_copy(R, Y))
crypto/openssl/crypto/bn/bn_gcd.c
53
if (BN_copy(B, a) == NULL)
crypto/openssl/crypto/bn/bn_gcd.c
55
if (BN_copy(A, n) == NULL)
crypto/openssl/crypto/bn/bn_gcd.c
590
ret = BN_copy(r, in_a) != NULL;
crypto/openssl/crypto/bn/bn_gcd.c
595
ret = BN_copy(r, in_b) != NULL;
crypto/openssl/crypto/bn/bn_gf2m.c
1023
if (!BN_copy(z, a))
crypto/openssl/crypto/bn/bn_gf2m.c
1048
if (!BN_copy(w, rho))
crypto/openssl/crypto/bn/bn_gf2m.c
1079
if (!BN_copy(r, z))
crypto/openssl/crypto/bn/bn_gf2m.c
571
if (!BN_copy(v, p))
crypto/openssl/crypto/bn/bn_gf2m.c
699
if (!BN_copy(r, b))
crypto/openssl/crypto/bn/bn_gf2m.c
866
return (BN_copy(r, a) != NULL);
crypto/openssl/crypto/bn/bn_gf2m.c
884
if (!BN_copy(r, u))
crypto/openssl/crypto/bn/bn_kron.c
41
err = !BN_copy(A, a);
crypto/openssl/crypto/bn/bn_kron.c
44
err = !BN_copy(B, b);
crypto/openssl/crypto/bn/bn_lib.c
324
if (!BN_copy(t, a)) {
crypto/openssl/crypto/bn/bn_mod.c
295
if (BN_copy(r, a) == NULL)
crypto/openssl/crypto/bn/bn_mont.c
181
if ((t = BN_CTX_get(ctx)) && BN_copy(t, a)) {
crypto/openssl/crypto/bn/bn_mont.c
194
if (!BN_copy(t1, a))
crypto/openssl/crypto/bn/bn_mont.c
272
if (!BN_copy(&(mont->N), mod))
crypto/openssl/crypto/bn/bn_mont.c
413
if (!BN_copy(&(to->RR), &(from->RR)))
crypto/openssl/crypto/bn/bn_mont.c
415
if (!BN_copy(&(to->N), &(from->N)))
crypto/openssl/crypto/bn/bn_mont.c
417
if (!BN_copy(&(to->Ni), &(from->Ni)))
crypto/openssl/crypto/bn/bn_mont.c
471
if (BN_copy(&ctx->N, modulus) == NULL)
crypto/openssl/crypto/bn/bn_mul.c
612
if (r != rr && BN_copy(r, rr) == NULL)
crypto/openssl/crypto/bn/bn_nist.c
1164
return (r == a) ? 1 : (BN_copy(r, a) != NULL);
crypto/openssl/crypto/bn/bn_nist.c
378
return (r == a) ? 1 : (BN_copy(r, a) != NULL);
crypto/openssl/crypto/bn/bn_nist.c
514
return (r == a) ? 1 : (BN_copy(r, a) != NULL);
crypto/openssl/crypto/bn/bn_nist.c
683
return (r == a) ? 1 : (BN_copy(r, a) != NULL);
crypto/openssl/crypto/bn/bn_nist.c
916
return (r == a) ? 1 : (BN_copy(r, a) != NULL);
crypto/openssl/crypto/bn/bn_prime.c
369
&& BN_copy(w1, w)
crypto/openssl/crypto/bn/bn_prime.c
372
&& BN_copy(w3, w)
crypto/openssl/crypto/bn/bn_prime.c
423
if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx))
crypto/openssl/crypto/bn/bn_prime.c
434
if (!BN_copy(x, z) || !BN_mod_mul(z, x, x, w, ctx))
crypto/openssl/crypto/bn/bn_prime.c
440
if (!BN_copy(x, z))
crypto/openssl/crypto/bn/bn_recp.c
45
if (BN_is_zero(d) || !BN_copy(&(recp->N), d))
crypto/openssl/crypto/bn/bn_recp.c
98
if (!BN_copy(r, m)) {
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
141
if (BN_copy(p1, Xp1) == NULL)
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
297
if (Xin != NULL && BN_copy(X, Xin) == NULL)
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
377
if (BN_copy(y1, Y) == NULL
crypto/openssl/crypto/bn/bn_sqr.c
97
if (r != rr && BN_copy(r, rr) == NULL)
crypto/openssl/crypto/bn/bn_sqrt.c
163
if (!BN_copy(ret, x))
crypto/openssl/crypto/bn/bn_sqrt.c
173
if (!BN_copy(q, p))
crypto/openssl/crypto/bn/bn_sqrt.c
300
if (!BN_copy(ret, x))
crypto/openssl/crypto/bn/bn_sqrt.c
326
if (!BN_copy(t, y))
crypto/openssl/crypto/bn/bn_x931p.c
124
if (!BN_copy(pm1, p))
crypto/openssl/crypto/bn/bn_x931p.c
27
if (!BN_copy(pi, Xpi))
crypto/openssl/crypto/dh/dh_check.c
91
if (BN_copy(tmp, dh->params.p) == NULL || !BN_sub_word(tmp, 1))
crypto/openssl/crypto/dh/dh_key.c
93
if (BN_copy(pminus1, dh->params.p) == NULL
crypto/openssl/crypto/ec/ec2_smpl.c
106
if (!BN_copy(group->field, p))
crypto/openssl/crypto/ec/ec2_smpl.c
145
if (!BN_copy(p, group->field))
crypto/openssl/crypto/ec/ec2_smpl.c
150
if (!BN_copy(a, group->a))
crypto/openssl/crypto/ec/ec2_smpl.c
155
if (!BN_copy(b, group->b))
crypto/openssl/crypto/ec/ec2_smpl.c
258
if (!BN_copy(dest->X, src->X))
crypto/openssl/crypto/ec/ec2_smpl.c
260
if (!BN_copy(dest->Y, src->Y))
crypto/openssl/crypto/ec/ec2_smpl.c
262
if (!BN_copy(dest->Z, src->Z))
crypto/openssl/crypto/ec/ec2_smpl.c
298
if (!BN_copy(point->X, x))
crypto/openssl/crypto/ec/ec2_smpl.c
301
if (!BN_copy(point->Y, y))
crypto/openssl/crypto/ec/ec2_smpl.c
304
if (!BN_copy(point->Z, BN_value_one()))
crypto/openssl/crypto/ec/ec2_smpl.c
335
if (!BN_copy(x, point->X))
crypto/openssl/crypto/ec/ec2_smpl.c
340
if (!BN_copy(y, point->Y))
crypto/openssl/crypto/ec/ec2_smpl.c
396
if (!BN_copy(x0, a->X))
crypto/openssl/crypto/ec/ec2_smpl.c
398
if (!BN_copy(y0, a->Y))
crypto/openssl/crypto/ec/ec2_smpl.c
405
if (!BN_copy(x1, b->X))
crypto/openssl/crypto/ec/ec2_smpl.c
407
if (!BN_copy(y1, b->Y))
crypto/openssl/crypto/ec/ec2_smpl.c
658
if (!BN_copy(point->X, x))
crypto/openssl/crypto/ec/ec2_smpl.c
660
if (!BN_copy(point->Y, y))
crypto/openssl/crypto/ec/ec2_smpl.c
77
if (!BN_copy(dest->field, src->field))
crypto/openssl/crypto/ec/ec2_smpl.c
79
if (!BN_copy(dest->a, src->a))
crypto/openssl/crypto/ec/ec2_smpl.c
81
if (!BN_copy(dest->b, src->b))
crypto/openssl/crypto/ec/ec_backend.c
640
if (ret->priv_key == NULL || !BN_copy(ret->priv_key, src->priv_key))
crypto/openssl/crypto/ec/ec_key.c
151
if (!BN_copy(dest->priv_key, src->priv_key))
crypto/openssl/crypto/ec/ec_lib.c
245
if (!BN_copy(dest->order, src->order))
crypto/openssl/crypto/ec/ec_lib.c
247
if (!BN_copy(dest->cofactor, src->cofactor))
crypto/openssl/crypto/ec/ec_lib.c
351
if (!BN_copy(q, group->field))
crypto/openssl/crypto/ec/ec_lib.c
414
if (!BN_copy(group->order, order))
crypto/openssl/crypto/ec/ec_lib.c
419
if (!BN_copy(group->cofactor, cofactor))
crypto/openssl/crypto/ec/ec_lib.c
454
if (!BN_copy(order, group->order))
crypto/openssl/crypto/ec/ec_lib.c
476
if (!BN_copy(cofactor, group->cofactor))
crypto/openssl/crypto/ec/ec_mult.c
216
if (!BN_copy(k, scalar)) {
crypto/openssl/crypto/ec/ecdsa_ossl.c
349
if (BN_copy(ret->r, in_r) == NULL) {
crypto/openssl/crypto/ec/ecp_mont.c
297
if (!BN_copy(r, group->field_data2))
crypto/openssl/crypto/ec/ecp_nistz256.c
1536
if (!BN_copy(group->order, order))
crypto/openssl/crypto/ec/ecp_smpl.c
1244
if (!BN_copy(prod_Z[0], points[0]->Z))
crypto/openssl/crypto/ec/ecp_smpl.c
1262
if (!BN_copy(prod_Z[i], prod_Z[i - 1]))
crypto/openssl/crypto/ec/ecp_smpl.c
129
if (!BN_copy(dest->field, src->field))
crypto/openssl/crypto/ec/ecp_smpl.c
1306
if (!BN_copy(points[i]->Z, tmp_Z))
crypto/openssl/crypto/ec/ecp_smpl.c
131
if (!BN_copy(dest->a, src->a))
crypto/openssl/crypto/ec/ecp_smpl.c
1313
if (!BN_copy(points[0]->Z, tmp))
crypto/openssl/crypto/ec/ecp_smpl.c
133
if (!BN_copy(dest->b, src->b))
crypto/openssl/crypto/ec/ecp_smpl.c
167
if (!BN_copy(group->field, p))
crypto/openssl/crypto/ec/ecp_smpl.c
177
} else if (!BN_copy(group->a, tmp_a))
crypto/openssl/crypto/ec/ecp_smpl.c
207
if (!BN_copy(p, group->field))
crypto/openssl/crypto/ec/ecp_smpl.c
228
if (!BN_copy(a, group->a))
crypto/openssl/crypto/ec/ecp_smpl.c
232
if (!BN_copy(b, group->b))
crypto/openssl/crypto/ec/ecp_smpl.c
280
if (!BN_copy(a, group->a))
crypto/openssl/crypto/ec/ecp_smpl.c
282
if (!BN_copy(b, group->b))
crypto/openssl/crypto/ec/ecp_smpl.c
355
if (!BN_copy(dest->X, src->X))
crypto/openssl/crypto/ec/ecp_smpl.c
357
if (!BN_copy(dest->Y, src->Y))
crypto/openssl/crypto/ec/ecp_smpl.c
359
if (!BN_copy(dest->Z, src->Z))
crypto/openssl/crypto/ec/ecp_smpl.c
463
if (!BN_copy(x, point->X))
crypto/openssl/crypto/ec/ecp_smpl.c
467
if (!BN_copy(y, point->Y))
crypto/openssl/crypto/ec/ecp_smpl.c
471
if (!BN_copy(z, point->Z))
crypto/openssl/crypto/ec/ecp_smpl.c
551
if (!BN_copy(x, point->X))
crypto/openssl/crypto/ec/ecp_smpl.c
555
if (!BN_copy(y, point->Y))
crypto/openssl/crypto/ec/ecp_smpl.c
659
if (!BN_copy(n1, a->X))
crypto/openssl/crypto/ec/ecp_smpl.c
661
if (!BN_copy(n2, a->Y))
crypto/openssl/crypto/ec/ecp_smpl.c
681
if (!BN_copy(n3, b->X))
crypto/openssl/crypto/ec/ecp_smpl.c
683
if (!BN_copy(n4, b->Y))
crypto/openssl/crypto/ec/ecp_smpl.c
735
if (!BN_copy(r->Z, n5))
crypto/openssl/crypto/ec/ecp_smpl.c
739
if (!BN_copy(n0, b->Z))
crypto/openssl/crypto/ec/ecp_smpl.c
742
if (!BN_copy(n0, a->Z))
crypto/openssl/crypto/ec/ecp_smpl.c
886
if (!BN_copy(n0, a->Y))
crypto/openssl/crypto/ffc/ffc_key_validate.c
45
if (BN_copy(tmp, params->p) == NULL
crypto/openssl/crypto/ffc/ffc_params_generate.c
262
|| !BN_copy(X, W)
crypto/openssl/crypto/rsa/rsa_gen.c
124
if (BN_copy(r1, rsa->n) == NULL)
crypto/openssl/crypto/rsa/rsa_gen.c
368
if (BN_copy(rsa->e, e_value) == NULL)
crypto/openssl/crypto/rsa/rsa_gen.c
514
if (i > 1 && BN_copy(pinfo->pp, rsa->n) == NULL)
crypto/openssl/crypto/rsa/rsa_gen.c
516
if (BN_copy(rsa->n, r1) == NULL)
crypto/openssl/crypto/rsa/rsa_gen.c
583
BN_copy(pinfo->r, tmp);
crypto/openssl/crypto/rsa/rsa_gen.c
586
tmp2 = BN_copy(pinfo->d, tmp);
crypto/openssl/crypto/rsa/rsa_gen.c
591
tmp2 = BN_copy(pinfo->t, tmp);
crypto/openssl/crypto/rsa/rsa_ossl.c
172
|| BN_copy(nminus1, rsa->n) == NULL
crypto/openssl/crypto/rsa/rsa_ossl.c
584
|| BN_copy(nminus1, rsa->n) == NULL
crypto/openssl/crypto/rsa/rsa_sp800_56b_check.c
107
if (!BN_copy(low, &ossl_bn_inv_sqrt_2))
crypto/openssl/crypto/rsa/rsa_sp800_56b_check.c
159
&& (BN_copy(p1, p) != NULL)
crypto/openssl/crypto/rsa/rsa_sp800_56b_check.c
50
&& (BN_copy(p1, rsa->p) != NULL)
crypto/openssl/crypto/rsa/rsa_sp800_56b_check.c
53
&& (BN_copy(q1, rsa->q) != NULL)
crypto/openssl/include/openssl/bn.h
240
BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
crypto/openssl/providers/implementations/kem/rsa_kem.c
263
&& (BN_copy(nminus3, RSA_get0_n(rsa_pub)) != NULL)
crypto/openssl/ssl/tls_srp.c
254
if (!BN_copy(sc->srp_ctx.N, N)) {
crypto/openssl/ssl/tls_srp.c
263
if (!BN_copy(sc->srp_ctx.g, g)) {
crypto/openssl/ssl/tls_srp.c
272
if (!BN_copy(sc->srp_ctx.s, sa)) {
crypto/openssl/ssl/tls_srp.c
281
if (!BN_copy(sc->srp_ctx.v, v)) {
crypto/openssl/test/bntest.c
1171
if (!TEST_true(BN_copy(t, b)))
crypto/openssl/test/bntest.c
1243
if (!TEST_true(BN_copy(ret, a))
crypto/openssl/test/bntest.c
1246
|| !TEST_true(BN_copy(ret, b))
crypto/openssl/test/bntest.c
1249
|| !TEST_true(BN_copy(ret, sum))
crypto/openssl/test/bntest.c
1252
|| !TEST_true(BN_copy(ret, a))
crypto/openssl/test/bntest.c
1255
|| !TEST_true(BN_copy(ret, sum))
crypto/openssl/test/bntest.c
1258
|| !TEST_true(BN_copy(ret, b))
crypto/openssl/test/bntest.c
1283
if (!TEST_true(BN_copy(ret, a))
crypto/openssl/test/bntest.c
1286
|| !TEST_true(BN_copy(ret, b))
crypto/openssl/test/bntest.c
1289
|| !TEST_true(BN_copy(ret, sum))
crypto/openssl/test/bntest.c
1292
|| !TEST_true(BN_copy(ret, a))
crypto/openssl/test/bntest.c
1295
|| !TEST_true(BN_copy(ret, sum))
crypto/openssl/test/bntest.c
1298
|| !TEST_true(BN_copy(ret, b))
crypto/openssl/test/bntest.c
1309
if (!TEST_true(BN_copy(ret, a))
crypto/openssl/test/bntest.c
1312
|| !TEST_true(BN_copy(ret, sum))
crypto/openssl/test/bntest.c
1466
|| !TEST_true(BN_copy(tmp, square)))
crypto/openssl/test/bntest.c
1564
if (!TEST_ptr(BN_copy(ret, a)))
crypto/openssl/test/bntest.c
1595
if (!TEST_true(BN_copy(nnmod, remainder))
crypto/openssl/test/bntest.c
164
&& TEST_ptr(BN_copy(c, a))
crypto/openssl/test/bntest.c
165
&& TEST_ptr(BN_copy(d, b))))
crypto/openssl/test/bntest.c
252
&& TEST_ptr(BN_copy(b, a))
crypto/openssl/test/bntest.c
293
&& TEST_ptr(BN_copy(b, a))
crypto/openssl/test/bntest.c
3273
BN_copy(r, b);
crypto/openssl/test/bntest.c
750
&& TEST_ptr(BN_copy(b, BN_value_one()))))
crypto/openssl/test/bntest.c
886
&& TEST_true(BN_copy(d, a))
crypto/openssl/test/dhtest.c
127
if (!TEST_ptr(BN_copy(q, p)) || !TEST_true(BN_add(q, q, BN_value_one())))
crypto/openssl/test/dhtest.c
296
if (!TEST_ptr(BN_copy(pub, DH_get0_p(dh)))
crypto/openssl/test/ectest.c
1951
if (!TEST_ptr(BN_copy(other_p,
crypto/openssl/test/ectest.c
2260
|| !TEST_true(BN_copy(other_order, group_order))
crypto/openssl/test/ectest.c
2262
|| !TEST_true(BN_copy(other_cofactor, group_cofactor))
crypto/openssl/test/ectest.c
2678
|| !TEST_true(BN_copy(g1_order, EC_GROUP_get0_order(g1)))
crypto/openssl/test/ffc_internal_test.c
228
BN_copy(g1, p1);
crypto/openssl/test/ffc_internal_test.c
481
if (!TEST_ptr(BN_copy(pub, params->p)))
crypto/openssl/test/ffc_internal_test.c
575
if (!TEST_ptr(BN_copy(priv, params->q)))
crypto/openssl/test/rsa_sp800_56b_test.c
529
&& TEST_ptr(BN_copy(d, n))
lib/libmp/mpasbn.c
340
BN_ERRCHECK(msg, BN_copy(tmp->bn, sbp));
lib/libmp/mpasbn.c
350
BN_ERRCHECK(msg, BN_copy(tmp->bn, smp->bn));
usr.bin/factor/factor.c
263
BN_copy(base, rbase);
usr.bin/factor/factor.c
270
BN_copy(x, base);
usr.bin/factor/factor.c
290
BN_copy(val, num);