Searched refs:mp_int (Results 1 - 3 of 3) sorted by relevance
/freebsd-11-stable/contrib/wpa/src/tls/ |
H A D | bignum.c | 23 * struct bignum is just typecast to mp_int. 32 struct bignum *n = os_zalloc(sizeof(mp_int)); 35 if (mp_init((mp_int *) n) != MP_OKAY) { 50 mp_clear((mp_int *) n); 63 return mp_unsigned_bin_size((mp_int *) n); 77 size_t need = mp_unsigned_bin_size((mp_int *) n); 82 if (mp_to_unsigned_bin((mp_int *) n, buf) != MP_OKAY) { 101 if (mp_read_unsigned_bin((mp_int *) n, (u8 *) buf, len) != MP_OKAY) { 117 return mp_cmp((mp_int *) a, (mp_int *) [all...] |
H A D | libtommath.c | 125 /* the infamous mp_int structure */ 129 } mp_int; typedef in typeref:struct:__anon3760 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 * [all...] |
/freebsd-11-stable/contrib/wpa/src/crypto/ |
H A D | crypto_wolfssl.c | 1010 mp_int *a; 1027 mp_int *a; 1032 a = (mp_int *) crypto_bignum_init(); 1051 mp_forcezero((mp_int *) n); 1052 mp_clear((mp_int *) n); 1053 os_free((mp_int *) n); 1068 num_bytes = (mp_count_bits((mp_int *) a) + 7) / 8; 1077 mp_to_unsigned_bin((mp_int *) a, buf + offset); 1092 if (mp_rand_prime((mp_int *) r, 1093 (mp_count_bits((mp_int *) [all...] |
Completed in 113 milliseconds