Home
last modified time | relevance | path

Searched refs:mp_unsigned_bin_size (Results 1 – 25 of 37) sorted by relevance

12

/external/dropbear/libtomcrypt/src/math/fp/
Dltc_ecc_fp_mulmod.c686 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/
Drsa_exptmod.c84 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()
Drsa_sign_hash.c68 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()
Drsa_encrypt_key.c70 modulus_bytelen = mp_unsigned_bin_size( (key->N)); in rsa_encrypt_key_ex()
Drsa_decrypt_key.c70 modulus_bytelen = mp_unsigned_bin_size( (key->N)); in rsa_decrypt_key_ex()
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_encrypt_key.c65 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()
Ddsa_decrypt_key.c68 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()
Ddsa_import.c72 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()
Ddsa_shared_secret.c52 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/
Dkatja_exptmod.c84 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()
Dkatja_encrypt_key.c65 modulus_bytelen = mp_unsigned_bin_size((key->N)); in katja_encrypt_key()
Dkatja_decrypt_key.c66 modulus_bytelen = mp_unsigned_bin_size( (key->N)); in katja_decrypt_key()
/external/dropbear/libtommath/
Dbn_mp_to_unsigned_bin_n.c21 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()
Dbn_mp_signed_bin_size.c21 return 1 + mp_unsigned_bin_size (a); in mp_signed_bin_size()
Dbn_mp_unsigned_bin_size.c19 int mp_unsigned_bin_size (mp_int * a) in mp_unsigned_bin_size() function
/external/dropbear/libtomcrypt/src/pk/ecc/
Decc_ansi_x963_export.c56 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()
Decc_shared_secret.c74 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()
Dltc_ecc_mul2add.c68 lenA = mp_unsigned_bin_size(kA); in ltc_ecc_mul2add()
69 lenB = mp_unsigned_bin_size(kB); in ltc_ecc_mul2add()
/external/dropbear/
Drsa.c232 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()
Ddss.c270 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/
Dbignum.c63 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/
Dkatja_test.c28 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()
Drsa_test.c150 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/
Dpkcs_1_i2osp.c35 size = mp_unsigned_bin_size(n); in pkcs_1_i2osp()
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/
Dder_length_integer.c45 z = len = leading_zero + mp_unsigned_bin_size(num); in der_length_integer()

12