/external/dropbear/libtommath/ |
D | bn_mp_exteuclid.c | 32 if ((err = mp_copy(a, &u3)) != MP_OKAY) { goto _ERR; } in mp_exteuclid() 36 if ((err = mp_copy(b, &v3)) != MP_OKAY) { goto _ERR; } in mp_exteuclid() 52 if ((err = mp_copy(&v1, &u1)) != MP_OKAY) { goto _ERR; } in mp_exteuclid() 53 if ((err = mp_copy(&v2, &u2)) != MP_OKAY) { goto _ERR; } in mp_exteuclid() 54 if ((err = mp_copy(&v3, &u3)) != MP_OKAY) { goto _ERR; } in mp_exteuclid() 57 if ((err = mp_copy(&t1, &v1)) != MP_OKAY) { goto _ERR; } in mp_exteuclid() 58 if ((err = mp_copy(&t2, &v2)) != MP_OKAY) { goto _ERR; } in mp_exteuclid() 59 if ((err = mp_copy(&t3, &v3)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
|
D | bn_fast_mp_invmod.c | 40 if ((res = mp_copy (b, &x)) != MP_OKAY) { in fast_mp_invmod() 50 if ((res = mp_copy (&x, &u)) != MP_OKAY) { in fast_mp_invmod() 53 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in fast_mp_invmod()
|
D | bn_mp_mod_2d.c | 32 res = mp_copy (a, c); in mp_mod_2d() 37 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_mod_2d()
|
D | bn_mp_invmod_slow.c | 39 if ((res = mp_copy (b, &y)) != MP_OKAY) { in mp_invmod_slow() 50 if ((res = mp_copy (&x, &u)) != MP_OKAY) { in mp_invmod_slow() 53 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in mp_invmod_slow()
|
D | bn_mp_div_2d.c | 28 res = mp_copy (a, c); in mp_div_2d() 48 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_div_2d()
|
D | bn_mp_toom_mul.c | 45 if ((res = mp_copy(a, &a1)) != MP_OKAY) { in mp_toom_mul() 51 if ((res = mp_copy(a, &a2)) != MP_OKAY) { in mp_toom_mul() 61 if ((res = mp_copy(b, &b1)) != MP_OKAY) { in mp_toom_mul() 67 if ((res = mp_copy(b, &b2)) != MP_OKAY) { in mp_toom_mul()
|
D | bn_mp_init_copy.c | 26 return mp_copy (b, a); in mp_init_copy()
|
D | bn_mp_abs.c | 29 if ((res = mp_copy (a, b)) != MP_OKAY) { in mp_abs()
|
D | bn_mp_div.c | 34 res = mp_copy (a, d); in mp_div() 116 res = mp_copy (a, d); in mp_div() 244 if ((res = mp_copy (&y, &t1)) != MP_OKAY) { in mp_div()
|
D | bn_mp_neg.c | 23 if ((res = mp_copy (a, b)) != MP_OKAY) { in mp_neg()
|
D | bn_mp_copy.c | 20 mp_copy (mp_int * a, mp_int * b) in mp_copy() function
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
D | ltc_ecc_mulmod.c | 85 if ((err = mp_copy(G->x, tG->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 86 if ((err = mp_copy(G->y, tG->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 87 if ((err = mp_copy(G->z, tG->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 150 if ((err = mp_copy(M[bitbuf-8]->x, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 151 if ((err = mp_copy(M[bitbuf-8]->y, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 152 if ((err = mp_copy(M[bitbuf-8]->z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 184 if ((err = mp_copy(tG->x, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 185 if ((err = mp_copy(tG->y, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 186 if ((err = mp_copy(tG->z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
|
D | ltc_ecc_mulmod_timing.c | 90 if ((err = mp_copy(tG->x, M[0]->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 91 if ((err = mp_copy(tG->y, M[0]->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 92 if ((err = mp_copy(tG->z, M[0]->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 140 if ((err = mp_copy(M[0]->x, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 141 if ((err = mp_copy(M[0]->y, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod() 142 if ((err = mp_copy(M[0]->z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
|
D | ltc_ecc_projective_add_point.c | 60 if ((err = mp_copy(P->x, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point() 61 if ((err = mp_copy(P->y, y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point() 62 if ((err = mp_copy(P->z, z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point() 181 if ((err = mp_copy(x, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point() 182 if ((err = mp_copy(y, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point() 183 if ((err = mp_copy(z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
|
D | ecc_verify_hash.c | 119 …if ((err = mp_copy(key->pubkey.x, mQ->x)) != CRYPT_OK) … in ecc_verify_hash() 120 …if ((err = mp_copy(key->pubkey.y, mQ->y)) != CRYPT_OK) … in ecc_verify_hash() 121 …if ((err = mp_copy(key->pubkey.z, mQ->z)) != CRYPT_OK) … in ecc_verify_hash()
|
D | ltc_ecc_mul2add.c | 169 … if ((err = mp_copy(precomp[nA + (nB<<2)]->x, C->x)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add() 170 … if ((err = mp_copy(precomp[nA + (nB<<2)]->y, C->y)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add() 171 … if ((err = mp_copy(precomp[nA + (nB<<2)]->z, C->z)) != CRYPT_OK) { goto ERR_MU; } in ltc_ecc_mul2add()
|
D | ltc_ecc_projective_dbl_point.c | 49 if ((err = mp_copy(P->x, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point() 50 if ((err = mp_copy(P->y, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point() 51 if ((err = mp_copy(P->z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
|
/external/dropbear/libtomcrypt/src/math/fp/ |
D | ltc_ecc_fp_mulmod.c | 641 if ((mp_copy(g->x, fp_cache[idx].g->x) != CRYPT_OK) || in add_entry() 642 (mp_copy(g->y, fp_cache[idx].g->y) != CRYPT_OK) || in add_entry() 643 (mp_copy(g->z, fp_cache[idx].g->z) != CRYPT_OK)) { in add_entry() 705 if ((mp_copy(fp_cache[idx].LUT[1<<(x-1)]->x, fp_cache[idx].LUT[1<<x]->x) != CRYPT_OK) || in build_lut() 706 (mp_copy(fp_cache[idx].LUT[1<<(x-1)]->y, fp_cache[idx].LUT[1<<x]->y) != CRYPT_OK) || in build_lut() 707 …(mp_copy(fp_cache[idx].LUT[1<<(x-1)]->z, fp_cache[idx].LUT[1<<x]->z) != CRYPT_OK)) { goto ERR;… in build_lut() 883 if ((mp_copy(fp_cache[idx].LUT[z]->x, R->x) != CRYPT_OK) || in accel_fp_mul() 884 (mp_copy(fp_cache[idx].LUT[z]->y, R->y) != CRYPT_OK) || in accel_fp_mul() 885 (mp_copy(fp_cache[idx].mu, R->z) != CRYPT_OK)) { return CRYPT_MEM; } in accel_fp_mul() 1079 if ((mp_copy(fp_cache[idx1].LUT[zA]->x, R->x) != CRYPT_OK) || in accel_fp_mul2add() [all …]
|
/external/dropbear/libtommath/demo/ |
D | demo.c | 87 mp_copy(&c, &d); in main() 88 mp_copy(&c, &e); in main() 271 mp_copy(&c, &b); in main() 312 mp_copy(&b, &c); in main() 322 mp_copy(&b, &c); in main() 365 mp_copy(&b, &c); in main() 480 mp_copy(&a, &d); in main() 524 mp_copy(&a, &d); in main() 542 mp_copy(&a, &d); in main() 582 mp_copy(&a, &c); in main() [all …]
|
/external/dropbear/libtommath/mtest/ |
D | mpi.c | 338 mp_err mp_copy(mp_int *from, mp_int *to) in mp_copy() function 543 if((res = mp_copy(a, b)) != MP_OKAY) in mp_add_d() 577 if((res = mp_copy(a, b)) != MP_OKAY) in mp_sub_d() 624 if((res = mp_copy(a, b)) != MP_OKAY) in mp_mul_d() 643 if((res = mp_copy(a, c)) != MP_OKAY) in mp_mul_2() 681 mp_copy(a, q); in mp_div_d() 702 if((res = mp_copy(a, q)) != MP_OKAY) in mp_div_d() 745 if((res = mp_copy(a, c)) != MP_OKAY) in mp_div_2() 816 if((res = mp_copy(a, b)) != MP_OKAY) in mp_abs() 841 if((res = mp_copy(a, b)) != MP_OKAY) in mp_neg() [all …]
|
/external/dropbear/libtomcrypt/src/pk/katja/ |
D | katja_make_key.c | 68 if ((err = mp_copy( p, key->p)) != CRYPT_OK) { goto error2; } in katja_make_key() 69 if ((err = mp_copy( q, key->q)) != CRYPT_OK) { goto error2; } in katja_make_key()
|
/external/dropbear/libtomcrypt/src/pk/rsa/ |
D | rsa_make_key.c | 92 if ((err = mp_copy( p, key->p)) != CRYPT_OK) { goto errkey; } in rsa_make_key() 93 if ((err = mp_copy( q, key->q)) != CRYPT_OK) { goto errkey; } in rsa_make_key()
|
/external/dropbear/libtommath/pre_gen/ |
D | mpi.c | 92 if ((res = mp_copy (b, &x)) != MP_OKAY) { in fast_mp_invmod() 102 if ((res = mp_copy (&x, &u)) != MP_OKAY) { in fast_mp_invmod() 105 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in fast_mp_invmod() 792 if ((res = mp_copy (a, b)) != MP_OKAY) { in mp_abs() 1454 mp_copy (mp_int * a, mp_int * b) in mp_copy() function 1589 res = mp_copy (a, d); in mp_div() 1671 res = mp_copy (a, d); in mp_div() 1799 if ((res = mp_copy (&y, &t1)) != MP_OKAY) { in mp_div() 1951 res = mp_copy (a, c); in mp_div_2d() 1971 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_div_2d() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/tls/ |
D | libtommath.c | 157 static int mp_copy(mp_int * a, mp_int * b); 775 if ((res = mp_copy (b, &y)) != MP_OKAY) { in mp_invmod_slow() 786 if ((res = mp_copy (&x, &u)) != MP_OKAY) { in mp_invmod_slow() 789 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in mp_invmod_slow() 1018 res = mp_copy (a, c); in mp_div_2d() 1038 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_div_2d() 1092 return mp_copy (b, a); in mp_init_copy() 1113 static int mp_copy (mp_int * a, mp_int * b) in mp_copy() function 1295 if ((res = mp_copy (a, b)) != MP_OKAY) { in mp_abs() 1375 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_mul_2d() [all …]
|
/external/wpa_supplicant_8/src/tls/ |
D | libtommath.c | 157 static int mp_copy(mp_int * a, mp_int * b); 775 if ((res = mp_copy (b, &y)) != MP_OKAY) { in mp_invmod_slow() 786 if ((res = mp_copy (&x, &u)) != MP_OKAY) { in mp_invmod_slow() 789 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in mp_invmod_slow() 1018 res = mp_copy (a, c); in mp_div_2d() 1038 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_div_2d() 1092 return mp_copy (b, a); in mp_init_copy() 1113 static int mp_copy (mp_int * a, mp_int * b) in mp_copy() function 1295 if ((res = mp_copy (a, b)) != MP_OKAY) { in mp_abs() 1375 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_mul_2d() [all …]
|