Home
last modified time | relevance | path

Searched refs:mp_count_bits (Results 1 – 25 of 39) sorted by relevance

12

/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()
60 y = mp_count_bits(num); in der_encode_integer()
63 if (((mp_cnt_lsb(num)+1)==mp_count_bits(num)) && ((mp_count_bits(num)&7)==0)) --y; in der_encode_integer()
107 y = mp_count_bits(num); in der_encode_integer()
109 if (((mp_cnt_lsb(num)+1)==mp_count_bits(num)) && ((mp_count_bits(num)&7)==0)) y -= 8; 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()
50 z = mp_count_bits(num); in der_length_integer()
52 if (((mp_cnt_lsb(num)+1)==mp_count_bits(num)) && ((mp_count_bits(num)&7)==0)) --z; in der_length_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/demo/
Dtiming.c123 mp_count_bits(&a), CLK_PER_SEC / tt, tt); in main()
145 mp_count_bits(&a), CLK_PER_SEC / tt, tt); in main()
176 mp_count_bits(&a), CLK_PER_SEC / tt, tt); in main()
177 fprintf(log, "%d %9llu\n", mp_count_bits(&a), tt); in main()
196 mp_count_bits(&a), CLK_PER_SEC / tt, tt); in main()
197 fprintf(log, "%d %9llu\n", mp_count_bits(&a), tt); in main()
246 for (rr = 0; rr < (unsigned) mp_count_bits(&a); rr++) { in main()
268 printf("Different (%d)!!!\n", mp_count_bits(&a)); in main()
273 mp_count_bits(&a), CLK_PER_SEC / tt, tt); in main()
275 "%d %9llu\n", mp_count_bits(&a), tt); in main()
[all …]
Ddemo.c188 if (mp_count_bits(&a) != ix) { in main()
189 printf("Prime is %d not %d bits!!!\n", mp_count_bits(&a), ix); in main()
206 if (mp_count_bits(&a) != ix) { in main()
207 printf("Prime is %d not %d bits!!!\n", mp_count_bits(&a), ix); in main()
/external/dropbear/libtommath/
Dbn_mp_div.c51 n = mp_count_bits(a) - mp_count_bits(b); in mp_div()
152 norm = mp_count_bits(&y) % DIGIT_BIT; in mp_div()
Dbn_mp_unsigned_bin_size.c21 int size = mp_count_bits (a); in mp_unsigned_bin_size()
Dbn_mp_count_bits.c20 mp_count_bits (mp_int * a) in mp_count_bits() function
Dbn_mp_reduce_2k_setup_l.c28 if ((res = mp_2expt(&tmp, mp_count_bits(a))) != MP_OKAY) { in mp_reduce_2k_setup_l()
Dbn_mp_reduce_is_2k.c29 iy = mp_count_bits(a); in mp_reduce_is_2k()
Dbn_mp_reduce_2k_setup.c28 p = mp_count_bits(a); in mp_reduce_2k_setup()
Dbn_mp_montgomery_calc_normalization.c29 bits = mp_count_bits (b) % DIGIT_BIT; in mp_montgomery_calc_normalization()
Dbn_mp_reduce_2k_l.c31 p = mp_count_bits(n); in mp_reduce_2k_l()
Dbn_mp_reduce_2k.c28 p = mp_count_bits(n); in mp_reduce_2k()
Dbn_mp_radix_size.c29 *size = mp_count_bits (a) + (a->sign == MP_NEG ? 1 : 0) + 1; in mp_radix_size()
/external/dropbear/libtommath/etc/
Dpprime.c231 while (mp_count_bits (&a) < k) { in pprime()
232 fprintf (stderr, "prime has %4d bits left\r", k - mp_count_bits (&a)); in pprime()
388 printf ("\n\nTook %ld ticks, %d bits\n", t1, mp_count_bits (&p)); in main()
Ddrprime.c50 fprintf(out, "%d-bit prime:\np == %s\n\n", mp_count_bits(&a), buf); fflush(out); in main()
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_encrypt_key.c56 modulus_bitlen = mp_count_bits((key->N)); in katja_encrypt_key()
Dkatja_decrypt_key.c57 modulus_bitlen = mp_count_bits( (key->N)); in katja_decrypt_key()
/external/dropbear/libtomcrypt/testprof/
Dkatja_test.c25 if (mp_count_bits(key.N) < size - 7) { in katja_test()
26 fprintf(stderr, "katja_%d key modulus has %d bits\n", size, mp_count_bits(key.N)); in katja_test()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_encrypt_key.c67 modulus_bitlen = mp_count_bits( (key->N)); in rsa_encrypt_key_ex()
Drsa_decrypt_key.c67 modulus_bitlen = mp_count_bits( (key->N)); in rsa_decrypt_key_ex()
Drsa_sign_hash.c65 modulus_bitlen = mp_count_bits((key->N)); in rsa_sign_hash_ex()
/external/wpa_supplicant/
Dlibtommath.c127 static int mp_count_bits(mp_int * a);
702 int size = mp_count_bits (a); in mp_unsigned_bin_size()
1478 static int mp_count_bits (mp_int * a) in mp_count_bits() function
1566 n = mp_count_bits(a) - mp_count_bits(b); in mp_div()
1618 x = mp_count_bits (X); in s_mp_exptmod()
1888 p = mp_count_bits(n); in mp_reduce_2k_l()
1926 if ((res = mp_2expt(&tmp, mp_count_bits(a))) != MP_OKAY) { in mp_reduce_2k_setup_l()
/external/dropbear/
Dgenrsa.c75 } while (mp_count_bits(key->n) % 8 != 0); in gen_rsa_priv_key()

12