Home
last modified time | relevance | path

Searched refs:BN_copy (Results 1 – 25 of 31) sorted by relevance

12

/external/openssl/crypto/ec/
Dec2_smpl.c170 if (!BN_copy(&dest->field, &src->field)) return 0; in ec_GF2m_simple_group_copy()
171 if (!BN_copy(&dest->a, &src->a)) return 0; in ec_GF2m_simple_group_copy()
172 if (!BN_copy(&dest->b, &src->b)) return 0; in ec_GF2m_simple_group_copy()
194 if (!BN_copy(&group->field, p)) goto err; in ec_GF2m_simple_group_set_curve()
227 if (!BN_copy(p, &group->field)) return 0; in ec_GF2m_simple_group_get_curve()
232 if (!BN_copy(a, &group->a)) goto err; in ec_GF2m_simple_group_get_curve()
237 if (!BN_copy(b, &group->b)) goto err; in ec_GF2m_simple_group_get_curve()
326 if (!BN_copy(&dest->X, &src->X)) return 0; in ec_GF2m_simple_point_copy()
327 if (!BN_copy(&dest->Y, &src->Y)) return 0; in ec_GF2m_simple_point_copy()
328 if (!BN_copy(&dest->Z, &src->Z)) return 0; in ec_GF2m_simple_point_copy()
[all …]
Decp_smpl.c158 if (!BN_copy(&dest->field, &src->field)) return 0; in ec_GFp_simple_group_copy()
159 if (!BN_copy(&dest->a, &src->a)) return 0; in ec_GFp_simple_group_copy()
160 if (!BN_copy(&dest->b, &src->b)) return 0; in ec_GFp_simple_group_copy()
194 if (!BN_copy(&group->field, p)) goto err; in ec_GFp_simple_group_set_curve()
202 if (!BN_copy(&group->a, tmp_a)) goto err; in ec_GFp_simple_group_set_curve()
230 if (!BN_copy(p, &group->field)) return 0; in ec_GFp_simple_group_get_curve()
256 if (!BN_copy(a, &group->a)) goto err; in ec_GFp_simple_group_get_curve()
260 if (!BN_copy(b, &group->b)) goto err; in ec_GFp_simple_group_get_curve()
311 if (!BN_copy(a, &group->a)) goto err; in ec_GFp_simple_group_check_discriminant()
312 if (!BN_copy(b, &group->b)) goto err; in ec_GFp_simple_group_check_discriminant()
[all …]
Dec_lib.c219 if (!BN_copy(&dest->order, &src->order)) return 0; in EC_GROUP_copy()
220 if (!BN_copy(&dest->cofactor, &src->cofactor)) return 0; in EC_GROUP_copy()
300 { if (!BN_copy(&group->order, order)) return 0; } in EC_GROUP_set_generator()
305 { if (!BN_copy(&group->cofactor, cofactor)) return 0; } in EC_GROUP_set_generator()
321 if (!BN_copy(order, &group->order)) in EC_GROUP_get_order()
330 if (!BN_copy(cofactor, &group->cofactor)) in EC_GROUP_get_cofactor()
Dec2_mult.c125 if (!BN_copy(t1, x)) goto err; in gf2m_Madd()
165 if (!BN_copy(x2, x)) return 0; in gf2m_Mxy()
Decp_mont.c313 if (!BN_copy(r, group->field_data2)) return 0; in ec_GFp_mont_field_set_to_one()
/external/openssl/crypto/bn/
Dbn_gcd.c130 if (BN_copy(a,in_a) == NULL) goto err; in BN_gcd()
131 if (BN_copy(b,in_b) == NULL) goto err; in BN_gcd()
139 if (BN_copy(r,t) == NULL) goto err; in BN_gcd()
241 if (BN_copy(B,a) == NULL) goto err; in BN_mod_inverse()
242 if (BN_copy(A,n) == NULL) goto err; in BN_mod_inverse()
445 if (!BN_copy(tmp,X)) goto err; in BN_mod_inverse()
482 if (!BN_copy(R,Y)) goto err; in BN_mod_inverse()
536 if (BN_copy(B,a) == NULL) goto err; in BN_mod_inverse_no_branch()
537 if (BN_copy(A,n) == NULL) goto err; in BN_mod_inverse_no_branch()
636 if (!BN_copy(R,Y)) goto err; in BN_mod_inverse_no_branch()
Dbn_sqrt.c200 if (!BN_copy(ret, x)) goto end; in BN_mod_sqrt()
207 if (!BN_copy(q, p)) goto end; /* use 'q' as temp */ in BN_mod_sqrt()
332 if (!BN_copy(ret, x)) goto end; in BN_mod_sqrt()
354 if (!BN_copy(t, y)) goto end; in BN_mod_sqrt()
Dbn_kron.c85 err = !BN_copy(A, a); in BN_kronecker()
87 err = !BN_copy(B, b); in BN_kronecker()
Dbn_mont.c346 if ((t = BN_CTX_get(ctx)) && BN_copy(t,a)) in BN_from_montgomery()
357 if (!BN_copy(t1,a)) goto err; in BN_from_montgomery()
421 if (!BN_copy(&(mont->N),mod)) goto err; /* Set N */ in BN_MONT_CTX_set()
527 if (!BN_copy(&(to->RR),&(from->RR))) return NULL; in BN_MONT_CTX_copy()
528 if (!BN_copy(&(to->N),&(from->N))) return NULL; in BN_MONT_CTX_copy()
529 if (!BN_copy(&(to->Ni),&(from->Ni))) return NULL; in BN_MONT_CTX_copy()
Dbn_gf2m.c540 if (!BN_copy(v, p)) goto err; in BN_GF2m_mod_inv()
570 if (!BN_copy(r, b)) goto err; in BN_GF2m_mod_inv()
657 if (!BN_copy(b, p)) goto err; in BN_GF2m_mod_div()
694 if (!BN_copy(r, u)) goto err; in BN_GF2m_mod_div()
748 return (BN_copy(r, a) != NULL); in BN_GF2m_mod_exp_arr()
764 if (!BN_copy(r, u)) goto err; in BN_GF2m_mod_exp_arr()
894 if (!BN_copy(z, a)) goto err; in BN_GF2m_mod_solve_quad_arr()
914 if (!BN_copy(w, rho)) goto err; in BN_GF2m_mod_solve_quad_arr()
940 if (!BN_copy(r, z)) goto err; in BN_GF2m_mod_solve_quad_arr()
Dbn_recp.c96 if (!BN_copy(&(recp->N),d)) return 0; in BN_RECP_CTX_set()
152 if (!BN_copy(r,m)) return 0; in BN_div_recp()
Dbn_div.c85 { if (BN_copy(rem,m) == NULL) return(0); }
99 if (BN_copy(D,d) == NULL) goto end;
100 if (BN_copy(rem,m) == NULL) goto end;
220 { if (BN_copy(rm,num) == NULL) return(0); } in BN_div()
Dbn_exp.c140 if (BN_copy(v,a) == NULL) goto err; in BN_exp()
144 { if (BN_copy(rr,a) == NULL) goto err; } in BN_exp()
157 if (r != rr) BN_copy(r,rr); in BN_exp()
273 if (!BN_copy(aa, m)) goto err; in BN_mod_exp_recp()
655 if (!BN_copy(computeTemp, am)) goto err; in BN_mod_exp_mont_consttime()
Dbn_nist.c376 return (r == a) ? 1 : (BN_copy(r ,a) != NULL); in BN_nist_mod_192()
463 return (r == a)? 1 : (BN_copy(r ,a) != NULL); in BN_nist_mod_224()
575 return (r == a)? 1 : (BN_copy(r ,a) != NULL); in BN_nist_mod_256()
700 return (r == a)? 1 : (BN_copy(r ,a) != NULL); in BN_nist_mod_384()
810 return (r == a)? 1 : (BN_copy(r ,a) != NULL); in BN_nist_mod_521()
Dbntest.c375 BN_copy(&b,&a); in test_sub()
428 BN_copy(&b,&a); in test_div()
509 BN_copy(&b, &a); in test_div_word()
566 BN_copy(&b,&a); in test_div_recp()
1077 BN_copy(&b, BN_value_one()); in test_gf2m_add()
1268 BN_copy(d, a); in test_gf2m_mod_sqr()
1688 if (!BN_copy(t, b)) goto err; in test_kron()
1913 BN_copy(a,b); in test_lshift1()
1999 BN_copy(a,b); in test_rshift1()
Dbn_prime.c284 BN_copy(t, a); in BN_is_prime_fasttest_ex()
296 if (!BN_copy(A1, A)) in BN_is_prime_fasttest_ex()
Dbn_mod.c260 if (BN_copy(r, a) == NULL) return 0; in BN_mod_lshift_quick()
Dbn_sqr.c148 if (rr != r) BN_copy(r,rr); in BN_sqr()
Dbn_lib.c488 if(!BN_copy(t, a)) in BN_dup()
497 BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b) in BN_copy() function
Dbn_blind.c232 if (!BN_copy(r, b->Ai)) ret=0; in BN_BLINDING_convert_ex()
/external/openssl/crypto/dh/
Ddh_check.c133 BN_copy(q,dh->p); in DH_check_pub_key()
/external/openssl/crypto/jpake/
Djpake.c264 BN_copy(qm1, ctx->p.q); in genrand()
338 BN_copy(ctx->p.gxc, received->p1.gx); in JPAKE_STEP1_process()
339 BN_copy(ctx->p.gxd, received->p2.gx); in JPAKE_STEP1_process()
/external/openssl/crypto/rsa/
Drsa_gen.c115 BN_copy(rsa->e, e_value); in rsa_builtin_keygen()
/external/openssl/crypto/dsa/
Ddsa_gen.c265 if (!BN_copy(X,W)) goto err; in dsa_builtin_paramgen()
Ddsa_ossl.c247 if (!BN_copy(&kq, &k)) goto err; in dsa_sign_setup()

12