/external/dropbear/libtommath/ |
H A D | bn_mp_clear_multi.c | 19 void mp_clear_multi(mp_int *mp, ...) argument 21 mp_int* next_mp = mp; 23 va_start(args, mp);
|
H A D | bn_mp_init_multi.c | 19 int mp_init_multi(mp_int *mp, ...) argument 23 mp_int* cur_arg = mp; 26 va_start(args, mp); /* init args to next argument from caller */ 38 cur_arg = mp; 39 va_start(clean_args, mp);
|
H A D | bn_mp_exptmod_fast.c | 35 mp_digit buf, mp; local 89 if ((err = mp_montgomery_setup (P, &mp)) != MP_OKAY) { 116 mp_dr_setup(P, &mp); 125 if ((err = mp_reduce_2k_setup(P, &mp)) != MP_OKAY) { 178 if ((err = redux (&M[1 << (winsize - 1)], P, mp)) != MP_OKAY) { 188 if ((err = redux (&M[x], P, mp)) != MP_OKAY) { 231 if ((err = redux (&res, P, mp)) != MP_OKAY) { 248 if ((err = redux (&res, P, mp)) != MP_OKAY) { 257 if ((err = redux (&res, P, mp)) != MP_OKAY) { 275 if ((err = redux (&res, P, mp)) ! [all...] |
/external/dropbear/libtomcrypt/src/misc/crypt/ |
H A D | crypt_fsa.c | 20 int crypt_fsa(void *mp, ...) argument 26 va_start(args, mp); 27 if (mp != NULL) { 28 XMEMCPY(<c_mp, mp, sizeof(ltc_mp));
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
H A D | ltc_ecc_map.c | 30 @param mp The "b" value from montgomery_setup() 33 int ltc_ecc_map(ecc_point *P, void *modulus, void *mp) argument 40 LTC_ARGCHK(mp != NULL); 47 if ((err = mp_montgomery_reduce(P->z, modulus, mp)) != CRYPT_OK) { goto done; } 60 if ((err = mp_montgomery_reduce(P->x, modulus, mp)) != CRYPT_OK) { goto done; } 62 if ((err = mp_montgomery_reduce(P->y, modulus, mp)) != CRYPT_OK) { goto done; }
|
H A D | ltc_ecc_projective_dbl_point.c | 31 @param mp The "b" value from montgomery_setup() 34 int ltc_ecc_projective_dbl_point(ecc_point *P, ecc_point *R, void *modulus, void *mp) argument 42 LTC_ARGCHK(mp != NULL); 56 if ((err = mp_montgomery_reduce(t1, modulus, mp)) != CRYPT_OK) { goto done; } 59 if ((err = mp_montgomery_reduce(R->z, modulus, mp)) != CRYPT_OK) { goto done; } 78 if ((err = mp_montgomery_reduce(t2, modulus, mp)) != CRYPT_OK) { goto done; } 97 if ((err = mp_montgomery_reduce(R->y, modulus, mp)) != CRYPT_OK) { goto done; } 100 if ((err = mp_montgomery_reduce(t2, modulus, mp)) != CRYPT_OK) { goto done; } 108 if ((err = mp_montgomery_reduce(R->y, modulus, mp)) != CRYPT_OK) { goto done; } 112 if ((err = mp_montgomery_reduce(R->x, modulus, mp)) ! [all...] |
H A D | ltc_ecc_projective_add_point.c | 32 @param mp The "b" value from montgomery_setup() 35 int ltc_ecc_projective_add_point(ecc_point *P, ecc_point *Q, ecc_point *R, void *modulus, void *mp) argument 44 LTC_ARGCHK(mp != NULL); 57 return ltc_ecc_projective_dbl_point(P, R, modulus, mp); 68 if ((err = mp_montgomery_reduce(t1, modulus, mp)) != CRYPT_OK) { goto done; } 71 if ((err = mp_montgomery_reduce(x, modulus, mp)) != CRYPT_OK) { goto done; } 74 if ((err = mp_montgomery_reduce(t1, modulus, mp)) != CRYPT_OK) { goto done; } 77 if ((err = mp_montgomery_reduce(y, modulus, mp)) != CRYPT_OK) { goto done; } 82 if ((err = mp_montgomery_reduce(t1, modulus, mp)) != CRYPT_OK) { goto done; } 85 if ((err = mp_montgomery_reduce(t2, modulus, mp)) ! [all...] |
H A D | ecc_verify_hash.c | 52 void *mp; local 62 mp = NULL; 128 /* find the montgomery mp */ 129 if ((err = mp_montgomery_setup(m, &mp)) != CRYPT_OK) { goto error; } 132 if ((err = ltc_mp.ecc_ptadd(mQ, mG, mG, m, mp)) != CRYPT_OK) { goto error; } 135 if ((err = ltc_mp.ecc_map(mG, m, mp)) != CRYPT_OK) { goto error; } 155 if (mp != NULL) { 156 mp_montgomery_free(mp);
|
H A D | ltc_ecc_mulmod_timing.c | 41 void *mu, *mp; local 51 if ((err = mp_montgomery_setup(modulus, &mp)) != CRYPT_OK) { 55 mp_montgomery_free(mp); 60 mp_montgomery_free(mp); 72 mp_montgomery_free(mp); 94 if ((err = ltc_mp.ecc_ptdbl(tG, M[1], modulus, mp)) != CRYPT_OK) { goto done; } 122 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], modulus, mp)) != CRYPT_OK) { goto done; } 123 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], modulus, mp)) != CRYPT_OK) { goto done; } 130 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], modulus, mp)) != CRYPT_OK) { goto done; } 131 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], modulus, mp)) ! [all...] |
H A D | ltc_ecc_mul2add.c | 46 void *mp, *mu; local 97 if ((err = mp_montgomery_setup(modulus, &mp)) != CRYPT_OK) { 117 if ((err = ltc_mp.ecc_ptdbl(precomp[1], precomp[2], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 118 if ((err = ltc_mp.ecc_ptadd(precomp[1], precomp[2], precomp[3], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 121 if ((err = ltc_mp.ecc_ptdbl(precomp[1<<2], precomp[2<<2], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 122 if ((err = ltc_mp.ecc_ptadd(precomp[1<<2], precomp[2<<2], precomp[3<<2], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 127 if ((err = ltc_mp.ecc_ptadd(precomp[x], precomp[(y<<2)], precomp[x+(y<<2)], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 160 if ((err = ltc_mp.ecc_ptdbl(C, C, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 161 if ((err = ltc_mp.ecc_ptdbl(C, C, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 174 if ((err = ltc_mp.ecc_ptadd(C, precomp[nA + (nB<<2)], C, modulus, mp)) ! [all...] |
H A D | ltc_ecc_mulmod.c | 43 void *mu, *mp; local 53 if ((err = mp_montgomery_setup(modulus, &mp)) != CRYPT_OK) { 57 mp_montgomery_free(mp); 61 mp_montgomery_free(mp); 73 mp_montgomery_free(mp); 98 if ((err = ltc_mp.ecc_ptdbl(tG, M[0], modulus, mp)) != CRYPT_OK) { goto done; } 99 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], modulus, mp)) != CRYPT_OK) { goto done; } 100 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], modulus, mp)) != CRYPT_OK) { goto done; } 104 if ((err = ltc_mp.ecc_ptadd(M[j-9], tG, M[j-8], modulus, mp)) != CRYPT_OK) { goto done; } 138 if ((err = ltc_mp.ecc_ptdbl(R, R, modulus, mp)) ! [all...] |
/external/dropbear/libtommath/etc/ |
H A D | mont.c | 7 mp_digit mp; local 23 mp_montgomery_setup(&modulus, &mp); 29 mp_montgomery_reduce(&pp, &modulus, mp);
|
/external/dropbear/ |
H A D | bignum.c | 31 void m_mp_init(mp_int *mp) { argument 33 if (mp_init(mp) != MP_OKAY) { 40 void m_mp_init_multi(mp_int *mp, ...) argument 42 mp_int* cur_arg = mp; 45 va_start(args, mp); /* init args to next argument from caller */ 55 void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len) { argument 57 if (mp_read_unsigned_bin(mp, (unsigned char*)bytes, len) != MP_OKAY) { 62 /* hash the ssh representation of the mp_int mp */ 63 void sha1_process_mp(hash_state *hs, mp_int *mp) { argument 70 buf_putmpint(buf, mp); [all...] |
H A D | dss.c | 262 /* convert an unsigned mp into an array of bytes, malloced. 265 static unsigned char* mptobytes(mp_int *mp, int *len) { argument 270 size = mp_unsigned_bin_size(mp); 272 if (mp_to_unsigned_bin(mp, ret) != MP_OKAY) {
|
H A D | buffer.c | 268 void buf_putmpint(buffer* buf, mp_int * mp) { argument 273 dropbear_assert(mp != NULL); 275 if (SIGN(mp) == MP_NEG) { 280 if (USED(mp) == 1 && DIGIT(mp, 0) == 0) { 285 len = mp_count_bits(mp); 301 if (mp_to_unsigned_bin(mp, buf_getwriteptr(buf, len-pad)) != MP_OKAY) { 313 int buf_getmpint(buffer* buf, mp_int* mp) { argument 319 mp_zero(mp); 332 if (mp_read_unsigned_bin(mp, buf_getpt [all...] |
/external/dropbear/libtomcrypt/testprof/ |
H A D | ecc_test.c | 35 void *modulus, *mp, *kA, *kB, *rA, *rB; local 59 DO(mp_montgomery_setup(modulus, &mp)); 84 DO(ltc_mp.ecc_ptadd(C1, C2, C1, modulus, mp)); 85 DO(ltc_mp.ecc_map(C1, modulus, mp)); 96 mp_montgomery_free(mp);
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | ismounted.c | 199 struct statfs *mp; local 204 n = getmntinfo(&mp, MNT_NOWAIT); 215 s2 = mp->f_mntfromname; 224 ++mp; 227 strncpy(mtpt, mp->f_mntonname, mtlen);
|
/external/blktrace/btt/ |
H A D | seek.c | 159 static void __mode(struct rb_node *n, struct mode *mp) argument 164 __mode(n->rb_left, mp); 166 __mode(n->rb_right, mp); 169 if (mp->modes == NULL) { 170 mp->modes = malloc(sizeof(long long)); 171 mp->nmds = 0; 172 } else if (sbp->nseeks > mp->most_seeks) 173 mp->nmds = 0; 174 else if (sbp->nseeks == mp->most_seeks) 175 mp 295 seeki_mode(void *handle, struct mode *mp) argument [all...] |
/external/dbus/dbus/ |
H A D | dbus-threads.c | 337 DBusMutex **mp; local 339 mp = (DBusMutex **)link->data; 340 _dbus_assert (*mp == _DBUS_DUMMY_MUTEX); 342 *mp = _dbus_mutex_new (); 343 if (*mp == NULL) 395 DBusMutex **mp; local 397 mp = (DBusMutex **)link->data; 399 if (*mp != _DBUS_DUMMY_MUTEX) 400 _dbus_mutex_free (*mp); 404 *mp [all...] |
/external/dropbear/libtomcrypt/src/math/fp/ |
H A D | ltc_ecc_fp_mulmod.c | 672 static int build_lut(int idx, void *modulus, void *mp, void *mu) argument 711 if ((err = ltc_mp.ecc_ptdbl(fp_cache[idx].LUT[1<<x], fp_cache[idx].LUT[1<<x], modulus, mp)) != CRYPT_OK) { 724 fp_cache[idx].LUT[y], modulus, mp)) != CRYPT_OK) { 734 if ((err = mp_montgomery_reduce(fp_cache[idx].LUT[x]->z, modulus, mp)) != CRYPT_OK) { goto ERR; } 779 static int accel_fp_mul(int idx, void *k, ecc_point *R, void *modulus, void *mp, int map) argument 872 if ((err = ltc_mp.ecc_ptdbl(R, R, modulus, mp)) != CRYPT_OK) { 879 if ((err = ltc_mp.ecc_ptadd(R, fp_cache[idx].LUT[z], R, modulus, mp)) != CRYPT_OK) { 893 err = ltc_ecc_map(R, modulus, mp); 904 ecc_point *R, void *modulus, void *mp) 1060 if ((err = ltc_mp.ecc_ptdbl(R, R, modulus, mp)) ! 902 accel_fp_mul2add(int idx1, int idx2, void *kA, void *kB, ecc_point *R, void *modulus, void *mp) argument 1115 void *mp, *mu; local 1225 void *mp, *mu; local [all...] |
/external/dropbear/libtommath/demo/ |
H A D | demo.c | 59 mp_digit mp; local 82 mp_montgomery_setup(&a, &mp); 91 mp_montgomery_reduce(&c, &a, mp);
|
/external/iproute2/ip/ |
H A D | ipmaddr.c | 75 struct ma_info *mp; local 77 for (; (mp=*lst) != NULL; lst = &mp->next) { 78 if (mp->index > m->index)
|
/external/openssl/crypto/bn/ |
H A D | bn_mul.c | 766 BN_ULONG ll,lc,*lp,*mp; local 858 mp= &(t[n2]); 860 lp[i]=((~mp[i])+1)&BN_MASK2;
|
/external/dropbear/libtomcrypt/src/math/ |
H A D | tfm_desc.c | 411 fp_digit mp; local 418 mp = *((fp_digit*)Mp); 431 fp_montgomery_reduce(&t1, modulus, mp); 434 fp_montgomery_reduce(R->z, modulus, mp); 453 fp_montgomery_reduce(&t2, modulus, mp); 472 fp_montgomery_reduce(R->y, modulus, mp); 475 fp_montgomery_reduce(&t2, modulus, mp); 483 fp_montgomery_reduce(R->y, modulus, mp); 487 fp_montgomery_reduce(R->x, modulus, mp); 506 fp_montgomery_reduce(R->y, modulus, mp); 528 fp_digit mp; local [all...] |
/external/openssl/crypto/ |
H A D | mem_dbg.c | 506 MEM m,*mp; local 519 mp=(MEM *)lh_delete(mh,(char *)&m); 520 if (mp != NULL) 524 mp->order, mp->addr, mp->num); 526 if (mp->app_info != NULL) 527 app_info_free(mp->app_info); 528 OPENSSL_free(mp); 543 MEM m,*mp; local [all...] |