Home
last modified time | relevance | path

Searched refs:mp_copy (Results 1 – 25 of 37) sorted by relevance

12

/external/dropbear/libtommath/
Dbn_mp_exteuclid.c32 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()
Dbn_fast_mp_invmod.c40 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()
Dbn_mp_mod_2d.c32 res = mp_copy (a, c); in mp_mod_2d()
37 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_mod_2d()
Dbn_mp_invmod_slow.c39 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()
Dbn_mp_div_2d.c28 res = mp_copy (a, c); in mp_div_2d()
48 if ((res = mp_copy (a, c)) != MP_OKAY) { in mp_div_2d()
Dbn_mp_toom_mul.c45 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()
Dbn_mp_init_copy.c26 return mp_copy (b, a); in mp_init_copy()
Dbn_mp_abs.c29 if ((res = mp_copy (a, b)) != MP_OKAY) { in mp_abs()
Dbn_mp_div.c34 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()
Dbn_mp_neg.c23 if ((res = mp_copy (a, b)) != MP_OKAY) { in mp_neg()
Dbn_mp_copy.c20 mp_copy (mp_int * a, mp_int * b) in mp_copy() function
/external/dropbear/libtomcrypt/src/pk/ecc/
Dltc_ecc_mulmod.c85 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()
Dltc_ecc_mulmod_timing.c90 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()
Dltc_ecc_projective_add_point.c60 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()
Decc_verify_hash.c119 …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()
Dltc_ecc_mul2add.c169 … 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()
Dltc_ecc_projective_dbl_point.c49 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/
Dltc_ecc_fp_mulmod.c641 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/
Ddemo.c87 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/
Dmpi.c338 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/
Dkatja_make_key.c68 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/
Drsa_make_key.c92 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/
Dmpi.c92 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/
Dlibtommath.c157 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/
Dlibtommath.c157 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 …]

12