Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/ec/
Dsimple.c156 if (!BN_copy(&dest->field, &src->field) || in ec_GFp_simple_group_copy()
157 !BN_copy(&dest->a, &src->a) || in ec_GFp_simple_group_copy()
158 !BN_copy(&dest->b, &src->b)) { in ec_GFp_simple_group_copy()
193 if (!BN_copy(&group->field, p)) { in ec_GFp_simple_group_set_curve()
206 } else if (!BN_copy(&group->a, tmp_a)) { in ec_GFp_simple_group_set_curve()
238 if (p != NULL && !BN_copy(p, &group->field)) { in ec_GFp_simple_group_get_curve()
257 if (a != NULL && !BN_copy(a, &group->a)) { in ec_GFp_simple_group_get_curve()
260 if (b != NULL && !BN_copy(b, &group->b)) { in ec_GFp_simple_group_get_curve()
307 if (!BN_copy(a, &group->a) || !BN_copy(b, &group->b)) { in ec_GFp_simple_group_check_discriminant()
371 if (!BN_copy(&dest->X, &src->X) || in ec_GFp_simple_point_copy()
[all …]
Dec.c310 if (!BN_copy(&group->order, order)) { in EC_GROUP_set_generator()
318 if (!BN_copy(&group->cofactor, cofactor)) { in EC_GROUP_set_generator()
392 if (!BN_copy(&group->order, order) || in ec_group_new_from_data()
490 if (!BN_copy(&dest->order, &src->order) || in ec_group_copy()
491 !BN_copy(&dest->cofactor, &src->cofactor)) { in ec_group_copy()
538 if (!BN_copy(order, &group->order)) { in EC_GROUP_get_order()
547 if (!BN_copy(cofactor, &group->cofactor)) { in EC_GROUP_get_cofactor()
Dec_montgomery.c279 if (!BN_copy(r, group->one)) { in ec_GFp_mont_field_set_to_one()
Dec_key.c199 if (!BN_copy(dest->priv_key, src->priv_key)) { in EC_KEY_copy()
/external/boringssl/src/crypto/bn/
Dgcd.c195 if (BN_copy(a, in_a) == NULL) { in BN_gcd()
198 if (BN_copy(b, in_b) == NULL) { in BN_gcd()
215 if (BN_copy(r, t) == NULL) { in BN_gcd()
262 if (!BN_one(X) || BN_copy(B, a) == NULL || BN_copy(A, n) == NULL) { in BN_mod_inverse()
477 if (!BN_copy(tmp, X)) { in BN_mod_inverse()
516 if (!BN_copy(R, Y)) { in BN_mod_inverse()
570 if (!BN_one(X) || BN_copy(B, a) == NULL || BN_copy(A, n) == NULL) { in BN_mod_inverse_no_branch()
676 if (!BN_copy(R, Y)) { in BN_mod_inverse_no_branch()
Dsqrt.c218 if (!BN_copy(ret, x)) { in BN_mod_sqrt()
227 if (!BN_copy(q, p)) { in BN_mod_sqrt()
364 if (!BN_copy(ret, x)) { in BN_mod_sqrt()
390 if (!BN_copy(t, y)) { in BN_mod_sqrt()
501 BN_copy(out_sqrt, estimate); in BN_sqrt()
Dkronecker.c80 if (!BN_copy(A, a) || in BN_kronecker()
81 !BN_copy(B, b)) { in BN_kronecker()
Dmontgomery.c162 if (!BN_copy(&to->RR, &from->RR) || in BN_MONT_CTX_copy()
163 !BN_copy(&to->N, &from->N) || in BN_MONT_CTX_copy()
164 !BN_copy(&to->Ni, &from->Ni)) { in BN_MONT_CTX_copy()
185 if (!BN_copy(&mont->N, mod)) { in BN_MONT_CTX_set()
510 if (BN_copy(t, a)) { in BN_from_montgomery()
Dbn.c135 if (!BN_copy(copy, src)) { in BN_dup()
143 BIGNUM *BN_copy(BIGNUM *dest, const BIGNUM *src) { in BN_copy() function
Dexponentiation.c150 if (BN_copy(v, a) == NULL) { in BN_exp()
156 if (BN_copy(rr, a) == NULL) { in BN_exp()
177 BN_copy(r, rr); in BN_exp()
214 if (!BN_copy(&(recp->N), d)) { in BN_RECP_CTX_set()
279 if (!BN_copy(r, m)) { in BN_div_recp()
451 if (!BN_copy(aa, m)) { in mod_exp_recp()
1121 if (!BN_copy(rr, &tmp)) { in BN_mod_exp_mont_consttime()
Dprime.c522 BN_copy(t, a); in BN_is_prime_fasttest_ex()
537 if (!BN_copy(A1, A)) { in BN_is_prime_fasttest_ex()
Ddiv.c144 if (BN_copy(rm, num) == NULL) { in BN_div()
501 if (BN_copy(r, a) == NULL) { in BN_mod_lshift_quick()
Dbn_test.cc398 !BN_copy(b.get(), a.get()) || in test_sub()
446 !BN_copy(b.get(), a.get()) || in test_div()
542 if (!BN_copy(a.get(), b.get())) { in test_lshift1()
613 if (!BN_copy(a.get(), b.get())) { in test_rshift1()
849 if (!BN_copy(b.get(), a.get())) { in test_div_word()
Dmul.c670 BN_copy(r, rr); in BN_mul()
881 BN_copy(r, rr); in BN_sqr()
/external/vboot_reference/host/lib/
Dutil_misc.c78 BN_copy(N, rsa_private_key->n); in vb_keyb_from_rsa()
98 BN_copy(RR, R); in vb_keyb_from_rsa()
/external/boringssl/src/crypto/dh/
Dcheck.c77 if (!BN_copy(&q, dh->p) || in DH_check_pub_key()
/external/vboot_reference/utility/
DdumpRSAPublicKey.c92 BN_copy(RR, R); in output()
/external/boringssl/src/crypto/dsa/
Ddsa_impl.c133 if (!BN_copy(&kq, &k)) { in sign_setup()
626 !BN_copy(X, W) || in paramgen()
/external/boringssl/src/crypto/rsa/
Dblinding.c245 if (!BN_copy(r, b->Ai)) { in BN_BLINDING_convert_ex()
Drsa_impl.c818 BN_copy(rsa->e, e_value); in keygen()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c409 if (BN_copy(ret->r, in_r) == NULL) { in ECDSA_do_sign_ex()
/external/boringssl/src/include/openssl/
Dbn.h186 OPENSSL_EXPORT BIGNUM *BN_copy(BIGNUM *dest, const BIGNUM *src);
/external/openssh/
Dmoduli.c334 if (BN_copy(largebase, start) == NULL) in gen_candidates()
Dsshkey.c1780 if ((BN_copy(n->dsa->p, k->dsa->p) == NULL) || in sshkey_from_private()
1781 (BN_copy(n->dsa->q, k->dsa->q) == NULL) || in sshkey_from_private()
1782 (BN_copy(n->dsa->g, k->dsa->g) == NULL) || in sshkey_from_private()
1783 (BN_copy(n->dsa->pub_key, k->dsa->pub_key) == NULL)) { in sshkey_from_private()
1812 if ((BN_copy(n->rsa->n, k->rsa->n) == NULL) || in sshkey_from_private()
1813 (BN_copy(n->rsa->e, k->rsa->e) == NULL)) { in sshkey_from_private()