Home
last modified time | relevance | path

Searched refs:mp_sub (Results 1 – 25 of 30) sorted by relevance

12

/external/dropbear/libtommath/
Dbn_mp_toom_sqr.c119 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { in mp_toom_sqr()
123 if ((res = mp_sub(&w3, &w0, &w3)) != MP_OKAY) { in mp_toom_sqr()
135 if ((res = mp_sub(&w2, &w0, &w2)) != MP_OKAY) { in mp_toom_sqr()
138 if ((res = mp_sub(&w2, &w4, &w2)) != MP_OKAY) { in mp_toom_sqr()
142 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_sqr()
146 if ((res = mp_sub(&w3, &w2, &w3)) != MP_OKAY) { in mp_toom_sqr()
153 if ((res = mp_sub(&w1, &tmp1, &w1)) != MP_OKAY) { in mp_toom_sqr()
160 if ((res = mp_sub(&w3, &tmp1, &w3)) != MP_OKAY) { in mp_toom_sqr()
167 if ((res = mp_sub(&w2, &w1, &w2)) != MP_OKAY) { in mp_toom_sqr()
170 if ((res = mp_sub(&w2, &w3, &w2)) != MP_OKAY) { in mp_toom_sqr()
[all …]
Dbn_mp_invmod_slow.c72 if ((res = mp_sub (&B, &x, &B)) != MP_OKAY) { in mp_invmod_slow()
97 if ((res = mp_sub (&D, &x, &D)) != MP_OKAY) { in mp_invmod_slow()
113 if ((res = mp_sub (&u, &v, &u)) != MP_OKAY) { in mp_invmod_slow()
117 if ((res = mp_sub (&A, &C, &A)) != MP_OKAY) { in mp_invmod_slow()
121 if ((res = mp_sub (&B, &D, &B)) != MP_OKAY) { in mp_invmod_slow()
126 if ((res = mp_sub (&v, &u, &v)) != MP_OKAY) { in mp_invmod_slow()
130 if ((res = mp_sub (&C, &A, &C)) != MP_OKAY) { in mp_invmod_slow()
134 if ((res = mp_sub (&D, &B, &D)) != MP_OKAY) { in mp_invmod_slow()
160 if ((res = mp_sub(&C, b, &C)) != MP_OKAY) { in mp_invmod_slow()
Dbn_mp_toom_mul.c175 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { in mp_toom_mul()
179 if ((res = mp_sub(&w3, &w0, &w3)) != MP_OKAY) { in mp_toom_mul()
191 if ((res = mp_sub(&w2, &w0, &w2)) != MP_OKAY) { in mp_toom_mul()
194 if ((res = mp_sub(&w2, &w4, &w2)) != MP_OKAY) { in mp_toom_mul()
198 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_mul()
202 if ((res = mp_sub(&w3, &w2, &w3)) != MP_OKAY) { in mp_toom_mul()
209 if ((res = mp_sub(&w1, &tmp1, &w1)) != MP_OKAY) { in mp_toom_mul()
216 if ((res = mp_sub(&w3, &tmp1, &w3)) != MP_OKAY) { in mp_toom_mul()
223 if ((res = mp_sub(&w2, &w1, &w2)) != MP_OKAY) { in mp_toom_mul()
226 if ((res = mp_sub(&w2, &w3, &w2)) != MP_OKAY) { in mp_toom_mul()
[all …]
Dbn_fast_mp_invmod.c67 if ((res = mp_sub (&B, &x, &B)) != MP_OKAY) { in fast_mp_invmod()
86 if ((res = mp_sub (&D, &x, &D)) != MP_OKAY) { in fast_mp_invmod()
99 if ((res = mp_sub (&u, &v, &u)) != MP_OKAY) { in fast_mp_invmod()
103 if ((res = mp_sub (&B, &D, &B)) != MP_OKAY) { in fast_mp_invmod()
108 if ((res = mp_sub (&v, &u, &v)) != MP_OKAY) { in fast_mp_invmod()
112 if ((res = mp_sub (&D, &B, &D)) != MP_OKAY) { in fast_mp_invmod()
Dbn_mp_exteuclid.c45 if ((err = mp_sub(&u1, &tmp, &t1)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
47 if ((err = mp_sub(&u2, &tmp, &t2)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
49 if ((err = mp_sub(&u3, &tmp, &t3)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
Dbn_mp_n_root.c77 if ((res = mp_sub (&t2, a, &t2)) != MP_OKAY) { in mp_n_root()
92 if ((res = mp_sub (&t1, &t3, &t2)) != MP_OKAY) { in mp_n_root()
Dbn_mp_div.c61 if (((res = mp_sub(&ta, &tb, &ta)) != MP_OKAY) || in mp_div()
176 if ((res = mp_sub (&x, &y, &x)) != MP_OKAY) { in mp_div()
238 if ((res = mp_sub (&x, &t1, &x)) != MP_OKAY) { in mp_div()
Dbn_mp_submod.c30 if ((res = mp_sub (a, b, &t)) != MP_OKAY) { in mp_submod()
Dbn_mp_sub.c20 mp_sub (mp_int * a, mp_int * b, mp_int * c) in mp_sub() function
Dbn_mp_reduce.c71 if ((res = mp_sub (x, &q, x)) != MP_OKAY) { in mp_reduce()
/external/dropbear/libtomcrypt/src/pk/ecc/
Dltc_ecc_projective_dbl_point.c63 if ((err = mp_sub(R->z, modulus, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
67 if ((err = mp_sub(R->x, t1, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
74 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
82 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
87 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
93 if ((err = mp_sub(R->y, modulus, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
114 if ((err = mp_sub(R->x, R->y, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
119 if ((err = mp_sub(R->x, R->y, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
125 if ((err = mp_sub(R->y, R->x, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
133 if ((err = mp_sub(R->y, t2, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
Dltc_ecc_projective_add_point.c51 if ((err = mp_sub(modulus, Q->y, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
94 if ((err = mp_sub(y, t1, y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
101 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
106 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
109 if ((err = mp_sub(x, t2, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
116 if ((err = mp_sub(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
121 if ((err = mp_sub(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
152 if ((err = mp_sub(x, t2, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
158 if ((err = mp_sub(t2, x, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
163 if ((err = mp_sub(t2, x, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
[all …]
Decc_import.c48 …if ((err = mp_sub(t1, t2, t1)) != CRYPT_OK) { goto … in is_point()
59 …if ((err = mp_sub(t1, prime, t1)) != CRYPT_OK) { goto err… in is_point()
/external/dropbear/libtommath/pre_gen/
Dmpi.c119 if ((res = mp_sub (&B, &x, &B)) != MP_OKAY) { in fast_mp_invmod()
138 if ((res = mp_sub (&D, &x, &D)) != MP_OKAY) { in fast_mp_invmod()
151 if ((res = mp_sub (&u, &v, &u)) != MP_OKAY) { in fast_mp_invmod()
155 if ((res = mp_sub (&B, &D, &B)) != MP_OKAY) { in fast_mp_invmod()
160 if ((res = mp_sub (&v, &u, &v)) != MP_OKAY) { in fast_mp_invmod()
164 if ((res = mp_sub (&D, &B, &D)) != MP_OKAY) { in fast_mp_invmod()
1616 if (((res = mp_sub(&ta, &tb, &ta)) != MP_OKAY) || in mp_div()
1731 if ((res = mp_sub (&x, &y, &x)) != MP_OKAY) { in mp_div()
1793 if ((res = mp_sub (&x, &t1, &x)) != MP_OKAY) { in mp_div()
2987 if ((err = mp_sub(&u1, &tmp, &t1)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
[all …]
/external/wpa_supplicant/
Dlibtommath.c403 static int mp_sub (mp_int * a, mp_int * b, mp_int * c) in mp_sub() function
761 if ((res = mp_sub (&B, &x, &B)) != MP_OKAY) { in mp_invmod_slow()
786 if ((res = mp_sub (&D, &x, &D)) != MP_OKAY) { in mp_invmod_slow()
802 if ((res = mp_sub (&u, &v, &u)) != MP_OKAY) { in mp_invmod_slow()
806 if ((res = mp_sub (&A, &C, &A)) != MP_OKAY) { in mp_invmod_slow()
810 if ((res = mp_sub (&B, &D, &B)) != MP_OKAY) { in mp_invmod_slow()
815 if ((res = mp_sub (&v, &u, &v)) != MP_OKAY) { in mp_invmod_slow()
819 if ((res = mp_sub (&C, &A, &C)) != MP_OKAY) { in mp_invmod_slow()
823 if ((res = mp_sub (&D, &B, &D)) != MP_OKAY) { in mp_invmod_slow()
849 if ((res = mp_sub(&C, b, &C)) != MP_OKAY) { in mp_invmod_slow()
[all …]
Dbignum.c167 if (mp_sub((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_sub()
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/
Dder_decode_integer.c95 if (mp_2expt(tmp, mp_count_bits(num)) != CRYPT_OK || mp_sub(num, tmp, num) != CRYPT_OK) { in der_decode_integer()
/external/dropbear/libtommath/mtest/
Dmpi.c963 mp_err mp_sub(mp_int *a, mp_int *b, mp_int *c) in mp_sub() function
1485 (res = mp_sub(&t, a, &t)) != MP_OKAY) in mp_sqrt()
1499 if((res = mp_sub(&x, &t, &x)) != MP_OKAY) in mp_sqrt()
1564 if((res = mp_sub(a, b, c)) != MP_OKAY) in mp_submod()
1989 if((res = mp_sub(&u, &v, &t)) != MP_OKAY) in mp_gcd()
2118 if((res = mp_sub(&B, &xc, &B)) != MP_OKAY) goto CLEANUP; in mp_xgcd()
2131 if((res = mp_sub(&D, &xc, &D)) != MP_OKAY) goto CLEANUP; in mp_xgcd()
2137 if((res = mp_sub(&u, &v, &u)) != MP_OKAY) goto CLEANUP; in mp_xgcd()
2138 if((res = mp_sub(&A, &C, &A)) != MP_OKAY) goto CLEANUP; in mp_xgcd()
2139 if((res = mp_sub(&B, &D, &B)) != MP_OKAY) goto CLEANUP; in mp_xgcd()
[all …]
Dmtest.c136 mp_sub(&a, &b, &c); in main()
Dmpi.h125 mp_err mp_sub(mp_int *a, mp_int *b, mp_int *c);
/external/dropbear/libtommath/demo/
Dtiming.c138 DO(mp_sub(&a, &b, &c)); in main()
264 mp_sub(&e, &b, &b); in main()
Ddemo.c344 mp_sub(&a, &b, &a); in main()
351 mp_sub(&a, &b, &a); in main()
525 mp_sub(&d, &b, &d); in main()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_exptmod.c72 …if ((err = mp_sub(tmpa, tmpb, tmp)) != CRYPT_OK) { go… in rsa_exptmod()
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_exptmod.c72 …if ((err = mp_sub(tmpa, tmpb, tmp)) != CRYPT_OK) { go… in katja_exptmod()
/external/dropbear/
Dgendss.c125 if (mp_sub(&tempX, &tempC, &tempP) != MP_OKAY) { in getp()

12