/external/dropbear/libtommath/mtest/ |
mpi.h | 55 /* Macros for accessing the mp_int internals */ 79 } mp_int; typedef in typeref:struct:__anon7199 90 mp_err mp_init(mp_int *mp); 91 mp_err mp_init_array(mp_int mp[], int count); 92 mp_err mp_init_size(mp_int *mp, mp_size prec); 93 mp_err mp_init_copy(mp_int *mp, mp_int *from); 94 mp_err mp_copy(mp_int *from, mp_int *to); 95 void mp_exch(mp_int *mp1, mp_int *mp2) [all...] |
mpi.c | 61 /* Default precision for newly created mp_int's */ 160 mp_err s_mp_grow(mp_int *mp, mp_size min); /* increase allocated size */ 161 mp_err s_mp_pad(mp_int *mp, mp_size min); /* left pad with zeroes */ 163 void s_mp_clamp(mp_int *mp); /* clip leading zeroes */ 165 void s_mp_exch(mp_int *a, mp_int *b); /* swap a and b in place */ 167 mp_err s_mp_lshd(mp_int *mp, mp_size p); /* left-shift by p digits */ 168 void s_mp_rshd(mp_int *mp, mp_size p); /* right-shift by p digits */ 169 void s_mp_div_2d(mp_int *mp, mp_digit d); /* divide by 2^d in place */ 170 void s_mp_mod_2d(mp_int *mp, mp_digit d); /* modulo 2^d in place * [all...] |
/external/dropbear/libtommath/ |
tommath.h | 178 /* the infamous mp_int structure */ 182 } mp_int; typedef in typeref:struct:__anon7202 197 int mp_init(mp_int *a); 200 void mp_clear(mp_int *a); 203 int mp_init_multi(mp_int *mp, ...); 206 void mp_clear_multi(mp_int *mp, ...); 209 void mp_exch(mp_int *a, mp_int *b); 212 int mp_shrink(mp_int *a); 215 int mp_grow(mp_int *a, int size) [all...] |
bn_mp_exch.c | 19 * mp_int pointers around 22 mp_exch (mp_int * a, mp_int * b) 24 mp_int t;
|
bn_mp_addmod.c | 20 mp_addmod (mp_int * a, mp_int * b, mp_int * c, mp_int * d) 23 mp_int t;
|
bn_mp_and.c | 20 mp_and (mp_int * a, mp_int * b, mp_int * c) 23 mp_int t, *x; 43 /* zero digits above the last from the smallest mp_int */
|
bn_mp_mulmod.c | 19 int mp_mulmod (mp_int * a, mp_int * b, mp_int * c, mp_int * d) 22 mp_int t;
|
bn_mp_submod.c | 20 mp_submod (mp_int * a, mp_int * b, mp_int * c, mp_int * d) 23 mp_int t;
|
bn_mp_clear_multi.c | 19 void mp_clear_multi(mp_int *mp, ...) 21 mp_int* next_mp = mp; 26 next_mp = va_arg(args, mp_int*);
|
bn_mp_init_multi.c | 19 int mp_init_multi(mp_int *mp, ...) 23 mp_int* cur_arg = mp; 42 cur_arg = va_arg(clean_args, mp_int*); 49 cur_arg = va_arg(args, mp_int*);
|
bn_mp_mod.c | 20 mp_mod (mp_int * a, mp_int * b, mp_int * c) 22 mp_int t;
|
bn_mp_or.c | 19 int mp_or (mp_int * a, mp_int * b, mp_int * c) 22 mp_int t, *x;
|
bn_mp_reduce_2k_l.c | 22 int mp_reduce_2k_l(mp_int *a, mp_int *n, mp_int *d) 24 mp_int q;
|
bn_mp_sqrmod.c | 20 mp_sqrmod (mp_int * a, mp_int * b, mp_int * c) 23 mp_int t;
|
bn_mp_xor.c | 20 mp_xor (mp_int * a, mp_int * b, mp_int * c) 23 mp_int t, *x;
|
bn_mp_init_copy.c | 19 int mp_init_copy (mp_int * a, mp_int * b)
|
/external/wpa_supplicant_8/src/tls/ |
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 *) b) [all...] |
libtommath.c | 125 /* the infamous mp_int structure */ 129 } mp_int; typedef in typeref:struct:__anon18579 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) [all...] |
/external/dropbear/ |
bignum.c | 25 /* Contains helper functions for mp_int handling */ 31 void m_mp_init(mp_int *mp) { 40 void m_mp_init_multi(mp_int *mp, ...) 42 mp_int* cur_arg = mp; 50 cur_arg = va_arg(args, mp_int*); 55 void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len) { 62 /* hash the ssh representation of the mp_int mp */ 63 void sha1_process_mp(hash_state *hs, mp_int *mp) {
|
bignum.h | 30 void m_mp_init(mp_int *mp); 31 void m_mp_init_multi(mp_int *mp, ...); 32 void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len); 33 void sha1_process_mp(hash_state *hs, mp_int *mp);
|
genrsa.c | 36 static void getrsaprime(mp_int* prime, mp_int *primeminus, 37 mp_int* rsa_e, unsigned int size); 49 key->e = (mp_int*)m_malloc(sizeof(mp_int)); 50 key->n = (mp_int*)m_malloc(sizeof(mp_int)); 51 key->d = (mp_int*)m_malloc(sizeof(mp_int)); 52 key->p = (mp_int*)m_malloc(sizeof(mp_int)) [all...] |
dss.h | 37 mp_int* p; 38 mp_int* q; 39 mp_int* g; 40 mp_int* y; 41 mp_int* x;
|
kex.h | 36 void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv); 37 void kexdh_comb_key(mp_int *dh_pub_us, mp_int *dh_priv, mp_int *dh_pub_them,
|
rsa.h | 37 mp_int* n; 38 mp_int* e; 39 mp_int* d; 40 mp_int* p; 41 mp_int* q;
|
/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
pkcs_1_os2ip.c | 20 Read a binary string into an mp_int 21 @param n [out] The mp_int destination
|