Searched defs:mp (Results 1 - 25 of 37) sorted by relevance

12

/external/dropbear/libtommath/
H A Dbn_mp_clear_multi.c19 void mp_clear_multi(mp_int *mp, ...) argument
21 mp_int* next_mp = mp;
23 va_start(args, mp);
H A Dbn_mp_init_multi.c19 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 Dbn_mp_exptmod_fast.c35 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 Dcrypt_fsa.c20 int crypt_fsa(void *mp, ...) argument
26 va_start(args, mp);
27 if (mp != NULL) {
28 XMEMCPY(&ltc_mp, mp, sizeof(ltc_mp));
/external/dropbear/libtomcrypt/src/pk/ecc/
H A Dltc_ecc_map.c30 @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 Dltc_ecc_projective_dbl_point.c31 @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 Dltc_ecc_projective_add_point.c32 @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 Decc_verify_hash.c52 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 Dltc_ecc_mulmod_timing.c41 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 Dltc_ecc_mul2add.c46 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 Dltc_ecc_mulmod.c43 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 Dmont.c7 mp_digit mp; local
23 mp_montgomery_setup(&modulus, &mp);
29 mp_montgomery_reduce(&pp, &modulus, mp);
/external/dropbear/
H A Dbignum.c31 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 Ddss.c262 /* 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 Dbuffer.c268 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 Decc_test.c35 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 Dismounted.c199 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 Dseek.c159 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 Ddbus-threads.c337 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 Dltc_ecc_fp_mulmod.c672 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 Ddemo.c59 mp_digit mp; local
82 mp_montgomery_setup(&a, &mp);
91 mp_montgomery_reduce(&c, &a, mp);
/external/iproute2/ip/
H A Dipmaddr.c75 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 Dbn_mul.c766 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 Dtfm_desc.c411 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 Dmem_dbg.c506 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...]

Completed in 207 milliseconds

12