Searched refs:mp_count_bits (Results 1 – 21 of 21) sorted by relevance
42 if ((mp_count_bits(num) & 7) == 0 || mp_iszero(num) == LTC_MP_YES) { in der_encode_integer()52 y = mp_count_bits(num); in der_encode_integer()55 if (((mp_cnt_lsb(num)+1)==mp_count_bits(num)) && ((mp_count_bits(num)&7)==0)) --y; in der_encode_integer()86 y = mp_count_bits(num); in der_encode_integer()88 if (((mp_cnt_lsb(num)+1)==mp_count_bits(num)) && ((mp_count_bits(num)&7)==0)) y -= 8; in der_encode_integer()
30 if ((mp_count_bits(num) & 7) == 0 || mp_iszero(num) == LTC_MP_YES) { in der_length_integer()41 z = mp_count_bits(num); in der_length_integer()43 if (((mp_cnt_lsb(num)+1)==mp_count_bits(num)) && ((mp_count_bits(num)&7)==0)) --z; in der_length_integer()
57 if (mp_2expt(tmp, mp_count_bits(num)) != CRYPT_OK || mp_sub(num, tmp, num) != CRYPT_OK) { in der_decode_integer()
65 if ((mp_count_bits(vdata) & 7) == 0) size++; /* Zero padding if high bit set */ in ssh_encode_sequence_multi()129 if ((mp_count_bits(vdata) & 7) == 0) { in ssh_encode_sequence_multi()
57 bits = mp_count_bits(limit); in rand_bn_upto()
165 return mp_count_bits(a); in count_bits()454 b = mp_prime_rabin_miller_trials(mp_count_bits(a)); in isprime()
59 modulus_bitlen = mp_count_bits( (key->N)); in rsa_decrypt_key_ex()
61 modulus_bitlen = mp_count_bits( (key->N)); in rsa_encrypt_key_ex()
59 tmplen = (unsigned long)(mp_count_bits(key->N) / 8) * 2 + 8; in rsa_export()
63 modulus_bitlen = mp_count_bits((key->N)); in rsa_sign_hash_ex()
63 modulus_bitlen = mp_count_bits( (key->N)); in rsa_verify_hash_ex()
155 e_bits = mp_count_bits(e); in rsa_make_key_bn_e()
164 if (((size_t)mp_count_bits(ltc_tmp_key.pubkey.x) > key_size_bits) || in _ltc_ecc_generate_keypair()165 ((size_t)mp_count_bits(ltc_tmp_key.pubkey.y) > key_size_bits) || in _ltc_ecc_generate_keypair()166 ((size_t)mp_count_bits(ltc_tmp_key.k) > key_size_bits)) { in _ltc_ecc_generate_keypair()172 if (mp_count_bits(ltc_tmp_key.pubkey.z) != 1) { in _ltc_ecc_generate_keypair()
184 } else if ((size_t)mp_count_bits(ltc_tmp_key.N) != key_size) { in sw_crypto_acipher_gen_rsa_key()
61 unsigned long tmplen = (unsigned long)(mp_count_bits(key->y) / 8) + 8; in dsa_export()
56 qbits = mp_count_bits(key->q); in dsa_sign_hash_raw()
178 i = mp_count_bits(p); in s_dsa_make_params()
55 pbits = mp_count_bits(p); in ecc_sign_hash_ex()
130 pbits = mp_count_bits(p); in ecc_verify_hash_ex()
150 pbits = mp_count_bits(p); in ecc_recover_key()
185 #define mp_count_bits(a) ltc_mp.count_bits(a) macro
Completed in 18 milliseconds