/external/dropbear/libtomcrypt/src/math/fp/ |
D | ltc_ecc_fp_mulmod.c | 686 bitlen = mp_unsigned_bin_size(modulus) << 3; in build_lut() 787 if (mp_unsigned_bin_size(k) > mp_unsigned_bin_size(modulus)) { in accel_fp_mul() 789 y = mp_unsigned_bin_size(modulus); in accel_fp_mul() 825 bitlen = mp_unsigned_bin_size(modulus) << 3; in accel_fp_mul() 833 if (mp_unsigned_bin_size(tk) > (sizeof(kb) - 2)) { in accel_fp_mul() 851 y = mp_unsigned_bin_size(tk) - 1; in accel_fp_mul() 912 if (mp_unsigned_bin_size(kA) > mp_unsigned_bin_size(modulus)) { in accel_fp_mul2add() 914 y = mp_unsigned_bin_size(modulus); in accel_fp_mul2add() 950 if (mp_unsigned_bin_size(kB) > mp_unsigned_bin_size(modulus)) { in accel_fp_mul2add() 952 y = mp_unsigned_bin_size(modulus); in accel_fp_mul2add() [all …]
|
/external/dropbear/libtomcrypt/src/pk/rsa/ |
D | rsa_exptmod.c | 84 x = (unsigned long)mp_unsigned_bin_size(key->N); in rsa_exptmod() 92 if (mp_unsigned_bin_size(tmp) > mp_unsigned_bin_size(key->N)) { in rsa_exptmod() 100 …if ((err = mp_to_unsigned_bin(tmp, out+(x-mp_unsigned_bin_size(tmp)))) != CRYPT_OK) … in rsa_exptmod()
|
D | rsa_sign_hash.c | 68 modulus_bytelen = mp_unsigned_bin_size((key->N)); in rsa_sign_hash_ex() 105 y = mp_unsigned_bin_size(key->N); in rsa_sign_hash_ex()
|
D | rsa_encrypt_key.c | 70 modulus_bytelen = mp_unsigned_bin_size( (key->N)); in rsa_encrypt_key_ex()
|
D | rsa_decrypt_key.c | 70 modulus_bytelen = mp_unsigned_bin_size( (key->N)); in rsa_decrypt_key_ex()
|
/external/dropbear/libtomcrypt/src/pk/dsa/ |
D | dsa_encrypt_key.c | 65 expt = XMALLOC(mp_unsigned_bin_size(key->p) + 1); in dsa_encrypt_key() 79 x = mp_unsigned_bin_size(key->q); in dsa_encrypt_key() 96 x = mp_unsigned_bin_size(key->p) + 1; in dsa_encrypt_key() 120 zeromem(expt, mp_unsigned_bin_size(key->p) + 1); in dsa_encrypt_key()
|
D | dsa_decrypt_key.c | 68 expt = XMALLOC(mp_unsigned_bin_size(key->p) + 1); in dsa_decrypt_key() 90 x = mp_unsigned_bin_size(key->p) + 1; in dsa_decrypt_key() 95 y = MIN(mp_unsigned_bin_size(key->p) + 1, MAXBLOCKSIZE); in dsa_decrypt_key() 122 zeromem(expt, mp_unsigned_bin_size(key->p) + 1); in dsa_decrypt_key()
|
D | dsa_import.c | 72 key->qord = mp_unsigned_bin_size(key->q); in dsa_import() 75 …(unsigned long)key->qord >= mp_unsigned_bin_size(key->p) || (mp_unsigned_bin_size(key->p) - key->q… in dsa_import()
|
D | dsa_shared_secret.c | 52 x = (unsigned long)mp_unsigned_bin_size(res); in dsa_shared_secret() 59 …if ((err = mp_to_unsigned_bin(res, out + (x - mp_unsigned_bin_size(res)))) != CRYPT_OK) … in dsa_shared_secret()
|
/external/dropbear/libtomcrypt/src/pk/katja/ |
D | katja_exptmod.c | 84 x = (unsigned long)mp_unsigned_bin_size(key->N); in katja_exptmod() 92 if (mp_unsigned_bin_size(tmp) > mp_unsigned_bin_size(key->N)) { in katja_exptmod() 100 …if ((err = mp_to_unsigned_bin(tmp, out+(x-mp_unsigned_bin_size(tmp)))) != CRYPT_OK) … in katja_exptmod()
|
D | katja_encrypt_key.c | 65 modulus_bytelen = mp_unsigned_bin_size((key->N)); in katja_encrypt_key()
|
D | katja_decrypt_key.c | 66 modulus_bytelen = mp_unsigned_bin_size( (key->N)); in katja_decrypt_key()
|
/external/dropbear/libtommath/ |
D | bn_mp_to_unsigned_bin_n.c | 21 if (*outlen < (unsigned long)mp_unsigned_bin_size(a)) { in mp_to_unsigned_bin_n() 24 *outlen = mp_unsigned_bin_size(a); in mp_to_unsigned_bin_n()
|
D | bn_mp_signed_bin_size.c | 21 return 1 + mp_unsigned_bin_size (a); in mp_signed_bin_size()
|
D | bn_mp_unsigned_bin_size.c | 19 int mp_unsigned_bin_size (mp_int * a) in mp_unsigned_bin_size() function
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
D | ecc_ansi_x963_export.c | 56 mp_to_unsigned_bin(key->pubkey.x, buf + (numlen - mp_unsigned_bin_size(key->pubkey.x))); in ecc_ansi_x963_export() 61 mp_to_unsigned_bin(key->pubkey.y, buf + (numlen - mp_unsigned_bin_size(key->pubkey.y))); in ecc_ansi_x963_export()
|
D | ecc_shared_secret.c | 74 x = (unsigned long)mp_unsigned_bin_size(prime); in ecc_shared_secret() 81 …if ((err = mp_to_unsigned_bin(result->x, out + (x - mp_unsigned_bin_size(result->x)))) != CRYPT_… in ecc_shared_secret()
|
D | ltc_ecc_mul2add.c | 68 lenA = mp_unsigned_bin_size(kA); in ltc_ecc_mul2add() 69 lenB = mp_unsigned_bin_size(kB); in ltc_ecc_mul2add()
|
/external/dropbear/ |
D | rsa.c | 232 if (slen != (unsigned int)mp_unsigned_bin_size(key->n)) { in buf_rsa_verify() 342 nsize = mp_unsigned_bin_size(key->n); in buf_put_rsa_sign() 347 ssize = mp_unsigned_bin_size(&rsa_s); in buf_put_rsa_sign() 395 nsize = mp_unsigned_bin_size(key->n); in rsa_pad_em()
|
D | dss.c | 270 size = mp_unsigned_bin_size(mp); in mptobytes() 387 writelen = mp_unsigned_bin_size(&dss_r); in buf_put_dss_sign() 400 writelen = mp_unsigned_bin_size(&dss_s); in buf_put_dss_sign()
|
/external/wpa_supplicant_8/src/tls/ |
D | bignum.c | 63 return mp_unsigned_bin_size((mp_int *) n); in bignum_get_unsigned_bin_len() 77 size_t need = mp_unsigned_bin_size((mp_int *) n); in bignum_get_unsigned_bin()
|
/external/dropbear/libtomcrypt/testprof/ |
D | katja_test.c | 28 len = mp_unsigned_bin_size(key.N); in katja_test() 36 len = mp_unsigned_bin_size(key.p); in katja_test() 44 len = mp_unsigned_bin_size(key.q); in katja_test()
|
D | rsa_test.c | 150 len = mp_unsigned_bin_size(key.N); in rsa_test() 158 len = mp_unsigned_bin_size(key.p); in rsa_test() 166 len = mp_unsigned_bin_size(key.q); in rsa_test()
|
/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
D | pkcs_1_i2osp.c | 35 size = mp_unsigned_bin_size(n); in pkcs_1_i2osp()
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/ |
D | der_length_integer.c | 45 z = len = leading_zero + mp_unsigned_bin_size(num); in der_length_integer()
|