Home
last modified time | relevance | path

Searched refs:mp_iszero (Results 1 – 25 of 29) sorted by relevance

12

/external/dropbear/libtommath/
Dbn_mp_gcd.c25 if (mp_iszero (a) == MP_YES) { in mp_gcd()
28 if (mp_iszero (b) == MP_YES) { in mp_gcd()
73 while (mp_iszero(&v) == 0) { in mp_gcd()
Dbn_mp_toradix.c32 if (mp_iszero(a) == 1) { in mp_toradix()
50 while (mp_iszero (&t) == 0) { in mp_toradix()
Dbn_mp_radix_size.c38 if (mp_iszero(a) == MP_YES) { in mp_radix_size()
60 while (mp_iszero (&t) == MP_NO) { in mp_radix_size()
Dbn_mp_toradix_n.c35 if (mp_iszero(a) == MP_YES) { in mp_toradix_n()
59 while (mp_iszero (&t) == 0) { in mp_toradix_n()
Dbn_mp_div.c27 if (mp_iszero (b) == 1) { in mp_div()
77 c->sign = (mp_iszero(c) == MP_YES) ? MP_ZPOS : n2; in mp_div()
81 d->sign = (mp_iszero(d) == MP_YES) ? MP_ZPOS : n; in mp_div()
109 if (mp_iszero (b) == 1) { in mp_div()
Dbn_mp_invmod_slow.c25 if (b->sign == MP_NEG || mp_iszero(b) == 1) { in mp_invmod_slow()
140 if (mp_iszero (&u) == 0) in mp_invmod_slow()
Dbn_mp_invmod.c22 if (b->sign == MP_NEG || mp_iszero(b) == 1) { in mp_invmod()
Dbn_mp_neg.c28 if (mp_iszero(b) != MP_YES) { in mp_neg()
Dbn_mp_cnt_lsb.c29 if (mp_iszero(a) == 1) { in mp_cnt_lsb()
Dbn_mp_to_unsigned_bin.c29 while (mp_iszero (&t) == 0) { in mp_to_unsigned_bin()
Dbn_mp_read_radix.c76 if (mp_iszero(a) != 1) { in mp_read_radix()
Dbn_mp_sqrt.c30 if (mp_iszero(arg) == MP_YES) { in mp_sqrt()
Dbn_mp_jacobi.c33 if (mp_iszero (a) == 1) { in mp_jacobi()
Dbn_mp_div_d.c45 if (b == 1 || mp_iszero(a) == 1) { in mp_div_d()
Dbn_fast_mp_invmod.c118 if (mp_iszero (&u) == 0) { in fast_mp_invmod()
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/
Dder_encode_integer.c50 if ((mp_count_bits(num) & 7) == 0 || mp_iszero(num) == LTC_MP_YES) { in der_encode_integer()
98 } else if (mp_iszero(num) != LTC_MP_YES) { in der_encode_integer()
Dder_length_integer.c38 if ((mp_count_bits(num) & 7) == 0 || mp_iszero(num) == LTC_MP_YES) { in der_length_integer()
/external/dropbear/libtomcrypt/src/pk/ecc/
Decc_sign_hash.c81 if (mp_iszero(r) == LTC_MP_YES) { in ecc_sign_hash()
91 if (mp_iszero(s) == LTC_MP_NO) { in ecc_sign_hash()
Decc_verify_hash.c97 if (mp_iszero(r) || mp_iszero(s) || mp_cmp(r, p) != LTC_MP_LT || mp_cmp(s, p) != LTC_MP_LT) { in ecc_verify_hash()
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_verify_hash.c52 …if (mp_iszero(r) == LTC_MP_YES || mp_iszero(s) == LTC_MP_YES || mp_cmp(r, key->q) != LTC_MP_LT || … in dsa_verify_hash_raw()
Ddsa_sign_hash.c90 …if (mp_iszero(r) == LTC_MP_YES) { goto retry; } in dsa_sign_hash_raw()
98 …if (mp_iszero(s) == LTC_MP_YES) { goto retry; } in dsa_sign_hash_raw()
Ddsa_verify_key.c71 if (mp_iszero(tmp2) != LTC_MP_YES) { in dsa_verify_key()
/external/dropbear/libtommath/pre_gen/
Dmpi.c170 if (mp_iszero (&u) == 0) { in fast_mp_invmod()
1406 if (mp_iszero(a) == 1) { in mp_cnt_lsb()
1582 if (mp_iszero (b) == 1) { in mp_div()
1632 c->sign = (mp_iszero(c) == MP_YES) ? MP_ZPOS : n2; in mp_div()
1636 d->sign = (mp_iszero(d) == MP_YES) ? MP_ZPOS : n; in mp_div()
1664 if (mp_iszero (b) == 1) { in mp_div()
2152 if (b == 1 || mp_iszero(a) == 1) { in mp_div_d()
2981 while (mp_iszero(&v3) == MP_NO) { in mp_exteuclid()
3180 if (mp_iszero (a) == MP_YES) { in mp_gcd()
3183 if (mp_iszero (b) == MP_YES) { in mp_gcd()
[all …]
/external/wpa_supplicant/
Dlibtommath.c99 #define mp_iszero(a) (((a)->used == 0) ? MP_YES : MP_NO) macro
675 if (b->sign == MP_NEG || mp_iszero(b) == 1) { in mp_invmod()
714 if (b->sign == MP_NEG || mp_iszero(b) == 1) { in mp_invmod_slow()
829 if (mp_iszero (&u) == 0) in mp_invmod_slow()
943 while (mp_iszero (&t) == 0) { in mp_to_unsigned_bin()
1542 if (mp_iszero (b) == 1) { in mp_div()
1592 c->sign = (mp_iszero(c) == MP_YES) ? MP_ZPOS : n2; in mp_div()
1596 d->sign = (mp_iszero(d) == MP_YES) ? MP_ZPOS : n; in mp_div()
/external/dropbear/libtommath/etc/
Dmersenne.c59 if (mp_iszero (&u) == 1) { in is_mersenne()

12