Home
last modified time | relevance | path

Searched refs:mp_int (Results 1 – 5 of 5) sorted by relevance

/external/wpa_supplicant_8/src/tls/
Dbignum.c32 struct bignum *n = os_zalloc(sizeof(mp_int)); in bignum_init()
35 if (mp_init((mp_int *) n) != MP_OKAY) { in bignum_init()
50 mp_clear((mp_int *) n); in bignum_deinit()
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()
82 if (mp_to_unsigned_bin((mp_int *) n, buf) != MP_OKAY) { in bignum_get_unsigned_bin()
101 if (mp_read_unsigned_bin((mp_int *) n, (u8 *) buf, len) != MP_OKAY) { in bignum_set_unsigned_bin()
117 return mp_cmp((mp_int *) a, (mp_int *) b); in bignum_cmp()
129 return mp_cmp_d((mp_int *) a, b); in bignum_cmp_d()
143 if (mp_add((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_add()
[all …]
Dlibtommath.c129 } mp_int; typedef
140 static int s_mp_exptmod(mp_int * G, mp_int * X, mp_int * P, mp_int * Y, int redmode);
141 static int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
142 static int s_mp_sqr(mp_int * a, mp_int * b);
143 static int s_mp_mul_high_digs(mp_int * a, mp_int * b, mp_int * c, int digs);
146 static int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
150 static int mp_init_multi(mp_int *mp, ...);
153 static void mp_clear_multi(mp_int *mp, ...);
155 static int mp_lshd(mp_int * a, int b);
156 static void mp_set(mp_int * a, mp_digit b);
[all …]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_wolfssl.c1010 mp_int *a; in crypto_bignum_init()
1027 mp_int *a; in crypto_bignum_init_set()
1032 a = (mp_int *) crypto_bignum_init(); in crypto_bignum_init_set()
1051 mp_forcezero((mp_int *) n); in crypto_bignum_deinit()
1052 mp_clear((mp_int *) n); in crypto_bignum_deinit()
1053 os_free((mp_int *) n); in crypto_bignum_deinit()
1068 num_bytes = (mp_count_bits((mp_int *) a) + 7) / 8; in crypto_bignum_to_bin()
1077 mp_to_unsigned_bin((mp_int *) a, buf + offset); in crypto_bignum_to_bin()
1092 if (mp_rand_prime((mp_int *) r, in crypto_bignum_rand()
1093 (mp_count_bits((mp_int *) m) + 7) / 8 * 2, in crypto_bignum_rand()
[all …]
/external/python/cpython3/Modules/
D_tkinter.c945 mp_int bigValue; in asBignumObj()
1145 mp_int bigValue; in fromBignumObj()
/external/python/cpython2/Modules/
D_tkinter.c1056 mp_int bigValue; in asBignumObj()
1260 mp_int bigValue; in fromBignumObj()