Home
last modified time | relevance | path

Searched refs:mp_sqr (Results 1 – 25 of 28) sorted by relevance

12

/external/dropbear/libtommath/
Dbn_mp_toom_sqr.c50 if ((res = mp_sqr(&a0, &w0)) != MP_OKAY) { in mp_toom_sqr()
55 if ((res = mp_sqr(&a2, &w4)) != MP_OKAY) { in mp_toom_sqr()
73 if ((res = mp_sqr(&tmp1, &w1)) != MP_OKAY) { in mp_toom_sqr()
91 if ((res = mp_sqr(&tmp1, &w3)) != MP_OKAY) { in mp_toom_sqr()
103 if ((res = mp_sqr(&tmp1, &w2)) != MP_OKAY) { in mp_toom_sqr()
Dbn_s_mp_exptmod.c109 if ((err = mp_sqr (&M[1 << (winsize - 1)], in s_mp_exptmod()
173 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
190 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
217 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
Dbn_mp_karatsuba_sqr.c78 if (mp_sqr (&x0, &x0x0) != MP_OKAY) in mp_karatsuba_sqr()
80 if (mp_sqr (&x1, &x1x1) != MP_OKAY) in mp_karatsuba_sqr()
86 if (mp_sqr (&t1, &t1) != MP_OKAY) in mp_karatsuba_sqr()
Dbn_mp_exptmod_fast.c175 if ((err = mp_sqr (&M[1 << (winsize - 1)], &M[1 << (winsize - 1)])) != MP_OKAY) { in mp_exptmod_fast()
228 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
245 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
272 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
Dbn_mp_sqrmod.c29 if ((res = mp_sqr (a, &t)) != MP_OKAY) { in mp_sqrmod()
Dbn_mp_sqr.c20 mp_sqr (mp_int * a, mp_int * b) in mp_sqr() function
Dbn_mp_expt_d.c33 if ((res = mp_sqr (c, c)) != MP_OKAY) { in mp_expt_d()
Dbn_mp_is_square.c97 if ((res = mp_sqr(&t,&t)) != MP_OKAY) { in mp_is_square()
Dtommath.h320 int mp_sqr(mp_int *a, mp_int *b);
/external/dropbear/libtomcrypt/src/pk/ecc/
Dltc_ecc_projective_dbl_point.c55 if ((err = mp_sqr(R->z, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
96 if ((err = mp_sqr(R->y, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
99 if ((err = mp_sqr(R->y, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
111 if ((err = mp_sqr(t1, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
Dltc_ecc_projective_add_point.c67 if ((err = mp_sqr(Q->z, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
81 if ((err = mp_sqr(z, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
139 if ((err = mp_sqr(x, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
149 if ((err = mp_sqr(y, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
Decc_import.c40 …if ((err = mp_sqr(key->pubkey.y, t1)) != CRYPT_OK) { goto … in is_point()
43 …if ((err = mp_sqr(key->pubkey.x, t2)) != CRYPT_OK) { goto … in is_point()
Dltc_ecc_map.c53 if ((err = mp_sqr(t1, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
/external/dropbear/libtommath/demo/
Ddemo.c152 mp_sqr(&a, &a); in main()
320 mp_sqr(&b, &b); in main()
369 mp_sqr(&b, &b); in main()
372 mp_sqr(&c, &c); in main()
583 mp_sqr(&c, &c); in main()
Dtiming.c190 DO(mp_sqr(&a, &b)); in main()
/external/dropbear/libtommath/etc/
Dmersenne.c38 if ((res = mp_sqr (&u, &u)) != MP_OKAY) { in is_mersenne()
Dtune.c106 mp_sqr(&a,&b); in time_sqr()
/external/dropbear/libtommath/mtest/
Dmpi.h129 mp_err mp_sqr(mp_int *a, mp_int *b);
131 #define mp_sqr(a, b) mp_mul(a, a, b) macro
Dmtest.c173 mp_sqr(&a, &b); in main()
Dmpi.c1110 mp_err mp_sqr(mp_int *a, mp_int *b) in mp_sqr() function
1484 if((res = mp_sqr(&t, &t)) != MP_OKAY || in mp_sqrt()
1609 if((res = mp_sqr(a, c)) != MP_OKAY) in mp_sqrmod()
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dlibtommath.c166 static int mp_sqr(mp_int * a, mp_int * b);
1954 if ((err = mp_sqr (&M[1 << (winsize - 1)], in s_mp_exptmod()
2018 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
2035 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
2062 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
2096 static int mp_sqr (mp_int * a, mp_int * b) in mp_sqr() function
2124 #error mp_sqr could fail in mp_sqr()
3083 if ((err = mp_sqr (&M[1 << (winsize - 1)], &M[1 << (winsize - 1)])) != MP_OKAY) { in mp_exptmod_fast()
3136 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
3153 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
[all …]
/external/wpa_supplicant_8/src/tls/
Dlibtommath.c166 static int mp_sqr(mp_int * a, mp_int * b);
1954 if ((err = mp_sqr (&M[1 << (winsize - 1)], in s_mp_exptmod()
2018 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
2035 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
2062 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in s_mp_exptmod()
2096 static int mp_sqr (mp_int * a, mp_int * b) in mp_sqr() function
2124 #error mp_sqr could fail in mp_sqr()
3083 if ((err = mp_sqr (&M[1 << (winsize - 1)], &M[1 << (winsize - 1)])) != MP_OKAY) { in mp_exptmod_fast()
3136 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
3153 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
[all …]
/external/dropbear/libtommath/pre_gen/
Dmpi.c2473 if ((res = mp_sqr (c, c)) != MP_OKAY) { in mp_expt_d()
2792 if ((err = mp_sqr (&M[1 << (winsize - 1)], &M[1 << (winsize - 1)])) != MP_OKAY) { in mp_exptmod_fast()
2845 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
2862 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
2889 if ((err = mp_sqr (&res, &res)) != MP_OKAY) { in mp_exptmod_fast()
3969 if ((res = mp_sqr(&t,&t)) != MP_OKAY) { in mp_is_square()
4343 if (mp_sqr (&x0, &x0x0) != MP_OKAY) in mp_karatsuba_sqr()
4345 if (mp_sqr (&x1, &x1x1) != MP_OKAY) in mp_karatsuba_sqr()
4351 if (mp_sqr (&t1, &t1) != MP_OKAY) in mp_karatsuba_sqr()
7283 mp_sqr (mp_int * a, mp_int * b) in mp_sqr() function
[all …]
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_math.h476 #define mp_sqr(a, b) ltc_mp.sqr(a, b) macro
/external/dropbear/libtomcrypt/src/math/
Dltm_desc.c259 return mpi_to_ltc_error(mp_sqr(a, b)); in sqr()

12