Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/integer/
A Dder_encode_integer.c42 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()
A Dder_length_integer.c30 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()
A Dder_decode_integer.c57 if (mp_2expt(tmp, mp_count_bits(num)) != CRYPT_OK || mp_sub(num, tmp, num) != CRYPT_OK) { in der_decode_integer()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/ssh/
A Dssh_encode_sequence_multi.c65 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()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Drand_bn.c57 bits = mp_count_bits(limit); in rand_bn_upto()
A Dltm_desc.c165 return mp_count_bits(a); in count_bits()
454 b = mp_prime_rabin_miller_trials(mp_count_bits(a)); in isprime()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_decrypt_key.c59 modulus_bitlen = mp_count_bits( (key->N)); in rsa_decrypt_key_ex()
A Drsa_encrypt_key.c61 modulus_bitlen = mp_count_bits( (key->N)); in rsa_encrypt_key_ex()
A Drsa_export.c59 tmplen = (unsigned long)(mp_count_bits(key->N) / 8) * 2 + 8; in rsa_export()
A Drsa_sign_hash.c63 modulus_bitlen = mp_count_bits((key->N)); in rsa_sign_hash_ex()
A Drsa_verify_hash.c63 modulus_bitlen = mp_count_bits( (key->N)); in rsa_verify_hash_ex()
A Drsa_make_key.c155 e_bits = mp_count_bits(e); in rsa_make_key_bn_e()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Decc.c164 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()
A Drsa.c184 } else if ((size_t)mp_count_bits(ltc_tmp_key.N) != key_size) { in sw_crypto_acipher_gen_rsa_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_export.c61 unsigned long tmplen = (unsigned long)(mp_count_bits(key->y) / 8) + 8; in dsa_export()
A Ddsa_sign_hash.c56 qbits = mp_count_bits(key->q); in dsa_sign_hash_raw()
A Ddsa_generate_pqg.c178 i = mp_count_bits(p); in s_dsa_make_params()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_sign_hash.c55 pbits = mp_count_bits(p); in ecc_sign_hash_ex()
A Decc_verify_hash.c130 pbits = mp_count_bits(p); in ecc_verify_hash_ex()
A Decc_recover_key.c150 pbits = mp_count_bits(p); in ecc_recover_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h185 #define mp_count_bits(a) ltc_mp.count_bits(a) macro

Completed in 18 milliseconds