HomeSort by relevance Sort by last modified time
    Searched refs:MP_OKAY (Results 51 - 75 of 106) sorted by null

1 23 4 5

  /external/dropbear/libtommath/
bn_mp_sqrmod.c 25 if ((res = mp_init (&t)) != MP_OKAY) {
29 if ((res = mp_sqr (a, &t)) != MP_OKAY) {
bn_mp_submod.c 26 if ((res = mp_init (&t)) != MP_OKAY) {
30 if ((res = mp_sub (a, b, &t)) != MP_OKAY) {
bn_mp_prime_next_prime.c 54 return MP_OKAY;
60 return MP_OKAY;
67 return MP_OKAY;
84 if ((err = mp_sub_d(a, (a->dp[0] & 3) + 1, a)) != MP_OKAY) { return err; };
89 if ((err = mp_sub_d(a, 1, a)) != MP_OKAY) {
97 if ((err = mp_mod_d(a, ltm_prime_tab[x], res_tab + x)) != MP_OKAY) {
103 if ((err = mp_init(&b)) != MP_OKAY) {
135 if ((err = mp_add_d(a, step, a)) != MP_OKAY) {
147 if ((err = mp_prime_miller_rabin(a, &b, &res)) != MP_OKAY) {
160 err = MP_OKAY;
    [all...]
bn_mp_div.c 36 res = MP_OKAY;
45 if ((res = mp_init_multi(&ta, &tb, &tq, &q, NULL) != MP_OKAY)) {
52 if (((res = mp_abs(a, &ta)) != MP_OKAY) ||
53 ((res = mp_abs(b, &tb)) != MP_OKAY) ||
54 ((res = mp_mul_2d(&tb, n, &tb)) != MP_OKAY) ||
55 ((res = mp_mul_2d(&tq, n, &tq)) != MP_OKAY)) {
61 if (((res = mp_sub(&ta, &tb, &ta)) != MP_OKAY) ||
62 ((res = mp_add(&q, &tq, &q)) != MP_OKAY)) {
66 if (((res = mp_div_2d(&tb, 1, &tb, NULL)) != MP_OKAY) ||
67 ((res = mp_div_2d(&tq, 1, &tq, NULL)) != MP_OKAY)) {
    [all...]
bn_mp_and.c 26 if ((res = mp_init_copy (&t, a)) != MP_OKAY) {
32 if ((res = mp_init_copy (&t, b)) != MP_OKAY) {
51 return MP_OKAY;
bn_mp_fread.c 47 if ((err = mp_mul_d(a, radix, a)) != MP_OKAY) {
50 if ((err = mp_add_d(a, y, a)) != MP_OKAY) {
60 return MP_OKAY;
bn_mp_lshd.c 25 return MP_OKAY;
30 if ((res = mp_grow (a, a->used + b)) != MP_OKAY) {
61 return MP_OKAY;
bn_mp_or.c 25 if ((res = mp_init_copy (&t, a)) != MP_OKAY) {
31 if ((res = mp_init_copy (&t, b)) != MP_OKAY) {
44 return MP_OKAY;
bn_mp_read_radix.c 63 if ((res = mp_mul_d (a, (mp_digit) radix, a)) != MP_OKAY) {
66 if ((res = mp_add_d (a, (mp_digit) y, a)) != MP_OKAY) {
79 return MP_OKAY;
bn_mp_xor.c 26 if ((res = mp_init_copy (&t, a)) != MP_OKAY) {
32 if ((res = mp_init_copy (&t, b)) != MP_OKAY) {
45 return MP_OKAY;
bn_mp_init_multi.c 21 mp_err res = MP_OKAY; /* Assume ok until proven otherwise */
28 if (mp_init(cur_arg) != MP_OKAY) {
bn_error.c 22 { MP_OKAY, "Successful" },
bn_mp_div_2d.c 35 if ((res = mp_init (&t)) != MP_OKAY) {
41 if ((res = mp_mod_2d (a, b, &t)) != MP_OKAY) {
48 if ((res = mp_copy (a, c)) != MP_OKAY) {
91 return MP_OKAY;
bn_mp_exptmod.c 40 if ((err = mp_init(&tmpG)) != MP_OKAY) {
43 if ((err = mp_invmod(G, P, &tmpG)) != MP_OKAY) {
49 if ((err = mp_init(&tmpX)) != MP_OKAY) {
53 if ((err = mp_abs(X, &tmpX)) != MP_OKAY) {
bn_mp_mul_2d.c 26 if ((res = mp_copy (a, c)) != MP_OKAY) {
32 if ((res = mp_grow (c, c->used + b / DIGIT_BIT + 1)) != MP_OKAY) {
39 if ((res = mp_lshd (c, b / DIGIT_BIT)) != MP_OKAY) {
79 return MP_OKAY;
bn_mp_reduce_setup.c 25 if ((res = mp_2expt (a, b->used * 2 * DIGIT_BIT)) != MP_OKAY) {
bn_mp_div_2.c 25 if ((res = mp_grow (b, a->used)) != MP_OKAY) {
62 return MP_OKAY;
  /external/dropbear/libtommath/mtest/
mpi.c 96 "boolean true", /* MP_OKAY, MP_YES */
232 Initialize a new zero-valued mp_int. Returns MP_OKAY if successful,
254 if((res = mp_init(&mp[pos])) != MP_OKAY)
258 return MP_OKAY;
276 precision; returns MP_OKAY if successful, or MP_MEM if memory could
291 return MP_OKAY;
302 Initialize mp as an exact copy of from. Returns MP_OKAY if
312 return MP_OKAY;
322 return MP_OKAY;
343 return MP_OKAY;
    [all...]
  /external/dropbear/
bignum.c 33 if (mp_init(mp) != MP_OKAY) {
47 if (mp_init(cur_arg) != MP_OKAY) {
57 if (mp_read_unsigned_bin(mp, (unsigned char*)bytes, len) != MP_OKAY) {
gendss.c 83 if (mp_prime_next_prime(key->q, 18, 0) != MP_OKAY) {
102 if (mp_mul_d(key->q, 2, &temp2q) != MP_OKAY) {
119 if (mp_mod(&tempX, &temp2q, &tempC) != MP_OKAY) {
125 if (mp_sub(&tempX, &tempC, &tempP) != MP_OKAY) {
130 if (mp_add_d(&tempP, 1, key->p) != MP_OKAY) {
137 if (mp_prime_is_prime(key->p, 5, &result) != MP_OKAY) {
157 if (mp_sub_d(key->p, 1, &val) != MP_OKAY) {
161 if (mp_div(&val, key->q, &div, NULL) != MP_OKAY) {
170 if (mp_exptmod(&h, &div, key->p, key->g) != MP_OKAY) {
175 if (mp_add_d(&h, 1, &h) != MP_OKAY) {
    [all...]
genrsa.c 60 if (mp_set_int(key->e, RSA_E) != MP_OKAY) {
71 if (mp_mul(key->p, key->q, key->n) != MP_OKAY) {
78 if (mp_lcm(&pminus, &qminus, &lcm) != MP_OKAY) {
85 if (mp_invmod(key->e, &lcm, key->d) != MP_OKAY) {
114 if (mp_prime_next_prime(prime, 8, 0) != MP_OKAY) {
120 if (mp_sub_d(prime, 1, primeminus) != MP_OKAY) {
125 if (mp_gcd(primeminus, rsa_e, &temp_gcd) != MP_OKAY) {
dss.c 203 if (mp_invmod(&val1, key->q, &val2) != MP_OKAY) {
212 if (mp_mulmod(&val1, &val2, key->q, &val3) != MP_OKAY) {
224 if (mp_mulmod(&val1, &val2, key->q, &val4) != MP_OKAY) {
230 if (mp_exptmod(key->g, &val3, key->p, &val2) != MP_OKAY) {
234 if (mp_exptmod(key->y, &val4, key->p, &val3) != MP_OKAY) {
238 if (mp_mulmod(&val2, &val3, key->p, &val4) != MP_OKAY) {
242 if (mp_mod(&val4, key->q, &val2) != MP_OKAY) {
272 if (mp_to_unsigned_bin(mp, ret) != MP_OKAY) {
344 if (mp_mod(&dss_protok, key->q, &dss_k) != MP_OKAY) {
357 if (mp_exptmod(key->g, &dss_k, key->p, &dss_temp1) != MP_OKAY) {
    [all...]
  /external/wpa_supplicant_8/src/tls/
libtommath.c 101 #define MP_OKAY 0 /* ok result */
240 if ((res = mp_grow (c, max + 1)) != MP_OKAY) {
303 return MP_OKAY;
318 if ((res = mp_grow (c, max)) != MP_OKAY) {
370 return MP_OKAY;
396 return MP_OKAY;
545 if ((res = mp_init (&t)) != MP_OKAY) {
549 if ((res = mp_mul (a, b, &t)) != MP_OKAY) {
565 if ((res = mp_init (&t)) != MP_OKAY) {
569 if ((res = mp_div (a, b, NULL, &t)) != MP_OKAY) {
    [all...]
bignum.c 35 if (mp_init((mp_int *) n) != MP_OKAY) {
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) {
143 if (mp_add((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) {
161 if (mp_sub((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) {
179 if (mp_mul((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) {
199 != MP_OKAY) {
219 != MP_OKAY) {
  /external/dropbear/libtommath/etc/
pprime.c 184 return MP_OKAY;
187 if ((res = mp_init (&c)) != MP_OKAY) {
191 if ((res = mp_init (&v)) != MP_OKAY) {
199 10)) != MP_OKAY) {
203 if ((res = mp_init (&a)) != MP_OKAY) {
210 if ((res = mp_init (&b)) != MP_OKAY) {
214 if ((res = mp_init (&n)) != MP_OKAY) {
218 if ((res = mp_init (&x)) != MP_OKAY) {
222 if ((res = mp_init (&y)) != MP_OKAY) {
226 if ((res = mp_init (&z)) != MP_OKAY) {
    [all...]

Completed in 116 milliseconds

1 23 4 5