Home
last modified time | relevance | path

Searched refs:mp_cmp_d (Results 1 – 25 of 40) sorted by relevance

12

/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_verify_key.c53 if (mp_cmp_d(key->g, 0) == LTC_MP_EQ || mp_cmp_d(key->g, 1) == LTC_MP_EQ) { in dsa_verify_key()
64 if (!(mp_cmp_d(key->y, 1) == LTC_MP_GT && mp_cmp(key->y, tmp) == LTC_MP_LT)) { in dsa_verify_key()
77 if (mp_cmp_d(tmp, 1) != LTC_MP_EQ) { in dsa_verify_key()
84 if (mp_cmp_d(tmp, 1) != LTC_MP_EQ) { in dsa_verify_key()
Ddsa_sign_hash.c77 … if (mp_cmp_d(k, 1) != LTC_MP_GT) { goto retry; } in dsa_sign_hash_raw()
81 } while (mp_cmp_d(tmp, 1) != LTC_MP_EQ); in dsa_sign_hash_raw()
Ddsa_make_key.c99 } while (mp_cmp_d(tmp, 1) == LTC_MP_EQ); in dsa_make_key()
113 } while (mp_cmp_d(key->x, 1) != LTC_MP_GT); in dsa_make_key()
/external/dropbear/libtommath/etc/
Dpprime.c260 if (mp_cmp_d (&y, 1) != MP_EQ) in pprime()
273 if (mp_cmp_d (&y, 1) == MP_EQ) in pprime()
281 if (mp_cmp_d (&y, 1) == MP_EQ) in pprime()
290 if (mp_cmp_d (&y, 1) == MP_EQ) in pprime()
298 if (mp_cmp_d (&y, 1) == MP_EQ) in pprime()
307 if (mp_cmp_d (&y, 1) == MP_EQ) in pprime()
316 if (mp_cmp_d (&y, 1) != MP_EQ) in pprime()
/external/dropbear/libtommath/
Dbn_mp_jacobi.c28 if (mp_cmp_d(p, 0) != MP_GT) { in mp_jacobi()
39 if (mp_cmp_d (a, 1) == MP_EQ) { in mp_jacobi()
82 if (mp_cmp_d (&a1, 1) == MP_EQ) { in mp_jacobi()
Dbn_mp_prime_miller_rabin.c34 if (mp_cmp_d(b, 1) != MP_GT) { in mp_prime_miller_rabin()
70 if (mp_cmp_d (&y, 1) != MP_EQ && mp_cmp (&y, &n1) != MP_EQ) { in mp_prime_miller_rabin()
79 if (mp_cmp_d (&y, 1) == MP_EQ) { in mp_prime_miller_rabin()
Dbn_mp_prime_next_prime.c38 if (mp_cmp_d(a, ltm_prime_tab[PRIME_SIZE-1]) == MP_LT) { in mp_prime_next_prime()
41 if (mp_cmp_d(a, ltm_prime_tab[x]) != MP_LT) { in mp_prime_next_prime()
65 if (mp_cmp_d(a, 1) == MP_EQ) { in mp_prime_next_prime()
Dbn_mp_invmod_slow.c146 if (mp_cmp_d (&v, 1) != MP_EQ) { in mp_invmod_slow()
152 while (mp_cmp_d(&C, 0) == MP_LT) { in mp_invmod_slow()
Dbn_mp_cmp_d.c19 int mp_cmp_d(mp_int * a, mp_digit b) in mp_cmp_d() function
Dbn_mp_prime_fermat.c35 if (mp_cmp_d(b, 1) != MP_GT) { in mp_prime_fermat()
Dbn_mp_fread.c56 if (mp_cmp_d(a, 0) != MP_EQ) { in mp_fread()
Dbn_mp_prime_is_prime.c40 if (mp_cmp_d(a, ltm_prime_tab[ix]) == MP_EQ) { in mp_prime_is_prime()
Dbn_mp_reduce.c76 if (mp_cmp_d (x, 0) == MP_LT) { in mp_reduce()
Dbn_fast_mp_invmod.c125 if (mp_cmp_d (&v, 1) != MP_EQ) { in fast_mp_invmod()
/external/dropbear/libtomcrypt/src/pk/ecc/
Dltc_ecc_projective_dbl_point.c68 if (mp_cmp_d(t2, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point()
115 if (mp_cmp_d(R->x, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point()
120 if (mp_cmp_d(R->x, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point()
126 if (mp_cmp_d(R->y, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point()
134 if (mp_cmp_d(R->y, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point()
Dltc_ecc_projective_add_point.c95 if (mp_cmp_d(y, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point()
110 if (mp_cmp_d(x, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point()
153 if (mp_cmp_d(x, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point()
159 if (mp_cmp_d(t2, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point()
164 if (mp_cmp_d(t2, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point()
172 if (mp_cmp_d(y, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point()
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/
Dder_encode_integer.c48 if (mp_cmp_d(num, 0) != LTC_MP_LT) { in der_encode_integer()
93 if (mp_cmp_d(num, 0) == LTC_MP_GT) { in der_encode_integer()
Dder_length_integer.c34 if (mp_cmp_d(num, 0) != LTC_MP_LT) { in der_length_integer()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_import.c97 if (mp_cmp_d(key->N, 0) == LTC_MP_EQ) { in rsa_import()
118 } else if (mp_cmp_d(key->N, 1) == LTC_MP_EQ) { in rsa_import()
Drsa_make_key.c61 …} while (mp_cmp_d( tmp2, 1) != 0); /* while e div… in rsa_make_key()
68 …} while (mp_cmp_d( tmp2, 1) != 0); /* while e divi… in rsa_make_key()
/external/dropbear/libtommath/demo/
Dtiming.c267 if (mp_cmp_d(&d, 1)) { in main()
292 } while (mp_cmp_d(&c, 1) != MP_EQ); in main()
304 if (mp_cmp_d(&d, 1) != MP_EQ) { in main()
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_import.c48 if (mp_cmp_d(key->N, 0) == LTC_MP_EQ) { in katja_import()
/external/dropbear/libtommath/mtest/
Dmtest.c255 if (mp_cmp_d(&c, 1) != 0) continue; in main()
256 if (mp_cmp_d(&b, 1) == 0) continue; in main()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_math.h459 #define mp_cmp_d(a, b) ltc_mp.compare_d(a, b) macro
496 #define mp_iszero(a) (mp_cmp_d(a, 0) == LTC_MP_EQ ? LTC_MP_YES : LTC_MP_NO)
/external/dropbear/
Dgenrsa.c129 } while (mp_cmp_d(&temp_gcd, 1) != MP_EQ); /* while gcd(p-1, e) != 1 */ in getrsaprime()

12