Home
last modified time | relevance | path

Searched refs:MP_OKAY (Results 1 – 25 of 108) sorted by relevance

12345

/external/dropbear/libtommath/
Dbn_mp_toom_mul.c33 &b2, &tmp1, &tmp2, NULL)) != MP_OKAY) { in mp_toom_mul()
41 if ((res = mp_mod_2d(a, DIGIT_BIT * B, &a0)) != MP_OKAY) { in mp_toom_mul()
45 if ((res = mp_copy(a, &a1)) != MP_OKAY) { in mp_toom_mul()
51 if ((res = mp_copy(a, &a2)) != MP_OKAY) { in mp_toom_mul()
57 if ((res = mp_mod_2d(b, DIGIT_BIT * B, &b0)) != MP_OKAY) { in mp_toom_mul()
61 if ((res = mp_copy(b, &b1)) != MP_OKAY) { in mp_toom_mul()
67 if ((res = mp_copy(b, &b2)) != MP_OKAY) { in mp_toom_mul()
73 if ((res = mp_mul(&a0, &b0, &w0)) != MP_OKAY) { in mp_toom_mul()
78 if ((res = mp_mul(&a2, &b2, &w4)) != MP_OKAY) { in mp_toom_mul()
83 if ((res = mp_mul_2(&a0, &tmp1)) != MP_OKAY) { in mp_toom_mul()
[all …]
Dbn_mp_toom_sqr.c26 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, &a0, &a1, &a2, &tmp1, NULL)) != MP_OKAY) { in mp_toom_sqr()
34 if ((res = mp_mod_2d(a, DIGIT_BIT * B, &a0)) != MP_OKAY) { in mp_toom_sqr()
38 if ((res = mp_copy(a, &a1)) != MP_OKAY) { in mp_toom_sqr()
44 if ((res = mp_copy(a, &a2)) != MP_OKAY) { in mp_toom_sqr()
50 if ((res = mp_sqr(&a0, &w0)) != MP_OKAY) { in mp_toom_sqr()
55 if ((res = mp_sqr(&a2, &w4)) != MP_OKAY) { in mp_toom_sqr()
60 if ((res = mp_mul_2(&a0, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
63 if ((res = mp_add(&tmp1, &a1, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
66 if ((res = mp_mul_2(&tmp1, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
69 if ((res = mp_add(&tmp1, &a2, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
[all …]
Dbn_mp_invmod_slow.c31 &A, &B, &C, &D, NULL)) != MP_OKAY) { in mp_invmod_slow()
36 if ((res = mp_mod(a, b, &x)) != MP_OKAY) { in mp_invmod_slow()
39 if ((res = mp_copy (b, &y)) != MP_OKAY) { in mp_invmod_slow()
50 if ((res = mp_copy (&x, &u)) != MP_OKAY) { in mp_invmod_slow()
53 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in mp_invmod_slow()
63 if ((res = mp_div_2 (&u, &u)) != MP_OKAY) { in mp_invmod_slow()
69 if ((res = mp_add (&A, &y, &A)) != MP_OKAY) { in mp_invmod_slow()
72 if ((res = mp_sub (&B, &x, &B)) != MP_OKAY) { in mp_invmod_slow()
77 if ((res = mp_div_2 (&A, &A)) != MP_OKAY) { in mp_invmod_slow()
80 if ((res = mp_div_2 (&B, &B)) != MP_OKAY) { in mp_invmod_slow()
[all …]
Dbn_s_mp_exptmod.c56 if ((err = mp_init(&M[1])) != MP_OKAY) { in s_mp_exptmod()
62 if ((err = mp_init(&M[x])) != MP_OKAY) { in s_mp_exptmod()
72 if ((err = mp_init (&mu)) != MP_OKAY) { in s_mp_exptmod()
77 if ((err = mp_reduce_setup (&mu, P)) != MP_OKAY) { in s_mp_exptmod()
82 if ((err = mp_reduce_2k_setup_l (P, &mu)) != MP_OKAY) { in s_mp_exptmod()
96 if ((err = mp_mod (G, P, &M[1])) != MP_OKAY) { in s_mp_exptmod()
103 if ((err = mp_copy (&M[1], &M[1 << (winsize - 1)])) != MP_OKAY) { in s_mp_exptmod()
110 &M[1 << (winsize - 1)])) != MP_OKAY) { in s_mp_exptmod()
115 if ((err = redux (&M[1 << (winsize - 1)], P, &mu)) != MP_OKAY) { in s_mp_exptmod()
124 if ((err = mp_mul (&M[x - 1], &M[1], &M[x])) != MP_OKAY) { in s_mp_exptmod()
[all …]
Dbn_mp_exptmod_fast.c70 if ((err = mp_init(&M[1])) != MP_OKAY) { in mp_exptmod_fast()
76 if ((err = mp_init(&M[x])) != MP_OKAY) { in mp_exptmod_fast()
89 if ((err = mp_montgomery_setup (P, &mp)) != MP_OKAY) { in mp_exptmod_fast()
125 if ((err = mp_reduce_2k_setup(P, &mp)) != MP_OKAY) { in mp_exptmod_fast()
136 if ((err = mp_init (&res)) != MP_OKAY) { in mp_exptmod_fast()
150 if ((err = mp_montgomery_calc_normalization (&res, P)) != MP_OKAY) { in mp_exptmod_fast()
159 if ((err = mp_mulmod (G, &res, P, &M[1])) != MP_OKAY) { in mp_exptmod_fast()
164 if ((err = mp_mod(G, P, &M[1])) != MP_OKAY) { in mp_exptmod_fast()
170 if ((err = mp_copy (&M[1], &M[1 << (winsize - 1)])) != MP_OKAY) { in mp_exptmod_fast()
175 if ((err = mp_sqr (&M[1 << (winsize - 1)], &M[1 << (winsize - 1)])) != MP_OKAY) { in mp_exptmod_fast()
[all …]
Dbn_mp_karatsuba_mul.c62 if (mp_init_size (&x0, B) != MP_OKAY) in mp_karatsuba_mul()
64 if (mp_init_size (&x1, a->used - B) != MP_OKAY) in mp_karatsuba_mul()
66 if (mp_init_size (&y0, B) != MP_OKAY) in mp_karatsuba_mul()
68 if (mp_init_size (&y1, b->used - B) != MP_OKAY) in mp_karatsuba_mul()
72 if (mp_init_size (&t1, B * 2) != MP_OKAY) in mp_karatsuba_mul()
74 if (mp_init_size (&x0y0, B * 2) != MP_OKAY) in mp_karatsuba_mul()
76 if (mp_init_size (&x1y1, B * 2) != MP_OKAY) in mp_karatsuba_mul()
120 if (mp_mul (&x0, &y0, &x0y0) != MP_OKAY) in mp_karatsuba_mul()
122 if (mp_mul (&x1, &y1, &x1y1) != MP_OKAY) in mp_karatsuba_mul()
126 if (s_mp_add (&x1, &x0, &t1) != MP_OKAY) in mp_karatsuba_mul()
[all …]
Dbn_mp_div.c36 res = MP_OKAY; in mp_div()
45 if ((res = mp_init_multi(&ta, &tb, &tq, &q, NULL) != MP_OKAY)) { in mp_div()
52 if (((res = mp_abs(a, &ta)) != MP_OKAY) || in mp_div()
53 ((res = mp_abs(b, &tb)) != MP_OKAY) || in mp_div()
54 ((res = mp_mul_2d(&tb, n, &tb)) != MP_OKAY) || in mp_div()
55 ((res = mp_mul_2d(&tq, n, &tq)) != MP_OKAY)) { in mp_div()
61 if (((res = mp_sub(&ta, &tb, &ta)) != MP_OKAY) || in mp_div()
62 ((res = mp_add(&q, &tq, &q)) != MP_OKAY)) { in mp_div()
66 if (((res = mp_div_2d(&tb, 1, &tb, NULL)) != MP_OKAY) || in mp_div()
67 ((res = mp_div_2d(&tq, 1, &tq, NULL)) != MP_OKAY)) { in mp_div()
[all …]
Dbn_fast_mp_invmod.c35 if ((res = mp_init_multi(&x, &y, &u, &v, &B, &D, NULL)) != MP_OKAY) { in fast_mp_invmod()
40 if ((res = mp_copy (b, &x)) != MP_OKAY) { in fast_mp_invmod()
45 if ((res = mp_mod (a, b, &y)) != MP_OKAY) { in fast_mp_invmod()
50 if ((res = mp_copy (&x, &u)) != MP_OKAY) { in fast_mp_invmod()
53 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in fast_mp_invmod()
62 if ((res = mp_div_2 (&u, &u)) != MP_OKAY) { in fast_mp_invmod()
67 if ((res = mp_sub (&B, &x, &B)) != MP_OKAY) { in fast_mp_invmod()
72 if ((res = mp_div_2 (&B, &B)) != MP_OKAY) { in fast_mp_invmod()
80 if ((res = mp_div_2 (&v, &v)) != MP_OKAY) { in fast_mp_invmod()
86 if ((res = mp_sub (&D, &x, &D)) != MP_OKAY) { in fast_mp_invmod()
[all …]
Dbn_mp_karatsuba_sqr.c39 if (mp_init_size (&x0, B) != MP_OKAY) in mp_karatsuba_sqr()
41 if (mp_init_size (&x1, a->used - B) != MP_OKAY) in mp_karatsuba_sqr()
45 if (mp_init_size (&t1, a->used * 2) != MP_OKAY) in mp_karatsuba_sqr()
47 if (mp_init_size (&t2, a->used * 2) != MP_OKAY) in mp_karatsuba_sqr()
49 if (mp_init_size (&x0x0, B * 2) != MP_OKAY) in mp_karatsuba_sqr()
51 if (mp_init_size (&x1x1, (a->used - B) * 2) != MP_OKAY) in mp_karatsuba_sqr()
78 if (mp_sqr (&x0, &x0x0) != MP_OKAY) in mp_karatsuba_sqr()
80 if (mp_sqr (&x1, &x1x1) != MP_OKAY) in mp_karatsuba_sqr()
84 if (s_mp_add (&x1, &x0, &t1) != MP_OKAY) in mp_karatsuba_sqr()
86 if (mp_sqr (&t1, &t1) != MP_OKAY) in mp_karatsuba_sqr()
[all …]
Dbn_mp_exteuclid.c26 …f ((err = mp_init_multi(&u1, &u2, &u3, &v1, &v2, &v3, &t1, &t2, &t3, &q, &tmp, NULL)) != MP_OKAY) { in mp_exteuclid()
32 if ((err = mp_copy(a, &u3)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
36 if ((err = mp_copy(b, &v3)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
41 if ((err = mp_div(&u3, &v3, &q, NULL)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
44 if ((err = mp_mul(&v1, &q, &tmp)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
45 if ((err = mp_sub(&u1, &tmp, &t1)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
46 if ((err = mp_mul(&v2, &q, &tmp)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
47 if ((err = mp_sub(&u2, &tmp, &t2)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
48 if ((err = mp_mul(&v3, &q, &tmp)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
49 if ((err = mp_sub(&u3, &tmp, &t3)) != MP_OKAY) { goto _ERR; } in mp_exteuclid()
[all …]
Dbn_mp_n_root.c38 if ((res = mp_init (&t1)) != MP_OKAY) { in mp_n_root()
42 if ((res = mp_init (&t2)) != MP_OKAY) { in mp_n_root()
46 if ((res = mp_init (&t3)) != MP_OKAY) { in mp_n_root()
59 if ((res = mp_copy (&t2, &t1)) != MP_OKAY) { in mp_n_root()
66 if ((res = mp_expt_d (&t1, b - 1, &t3)) != MP_OKAY) { in mp_n_root()
72 if ((res = mp_mul (&t3, &t1, &t2)) != MP_OKAY) { in mp_n_root()
77 if ((res = mp_sub (&t2, a, &t2)) != MP_OKAY) { in mp_n_root()
83 if ((res = mp_mul_d (&t3, b, &t3)) != MP_OKAY) { in mp_n_root()
88 if ((res = mp_div (&t2, &t3, &t3, NULL)) != MP_OKAY) { in mp_n_root()
92 if ((res = mp_sub (&t1, &t3, &t2)) != MP_OKAY) { in mp_n_root()
[all …]
Dbn_mp_reduce.c28 if ((res = mp_init_copy (&q, x)) != MP_OKAY) { in mp_reduce()
37 if ((res = mp_mul (&q, mu, &q)) != MP_OKAY) { in mp_reduce()
42 if ((res = s_mp_mul_high_digs (&q, mu, &q, um)) != MP_OKAY) { in mp_reduce()
46 if ((res = fast_s_mp_mul_high_digs (&q, mu, &q, um)) != MP_OKAY) { in mp_reduce()
61 if ((res = mp_mod_2d (x, DIGIT_BIT * (um + 1), x)) != MP_OKAY) { in mp_reduce()
66 if ((res = s_mp_mul_digs (&q, m, &q, um + 1)) != MP_OKAY) { in mp_reduce()
71 if ((res = mp_sub (x, &q, x)) != MP_OKAY) { in mp_reduce()
78 if ((res = mp_lshd (&q, um + 1)) != MP_OKAY) in mp_reduce()
80 if ((res = mp_add (x, &q, x)) != MP_OKAY) in mp_reduce()
86 if ((res = s_mp_sub (x, m, x)) != MP_OKAY) { in mp_reduce()
Dbn_mp_sqrt.c32 return MP_OKAY; in mp_sqrt()
35 if ((res = mp_init_copy(&t1, arg)) != MP_OKAY) { in mp_sqrt()
39 if ((res = mp_init(&t2)) != MP_OKAY) { in mp_sqrt()
47 if ((res = mp_div(arg,&t1,&t2,NULL)) != MP_OKAY) { in mp_sqrt()
50 if ((res = mp_add(&t1,&t2,&t1)) != MP_OKAY) { in mp_sqrt()
53 if ((res = mp_div_2(&t1,&t1)) != MP_OKAY) { in mp_sqrt()
58 if ((res = mp_div(arg,&t1,&t2,NULL)) != MP_OKAY) { in mp_sqrt()
61 if ((res = mp_add(&t1,&t2,&t1)) != MP_OKAY) { in mp_sqrt()
64 if ((res = mp_div_2(&t1,&t1)) != MP_OKAY) { in mp_sqrt()
Dbn_mp_gcd.c33 if ((res = mp_init_copy (&u, a)) != MP_OKAY) { in mp_gcd()
37 if ((res = mp_init_copy (&v, b)) != MP_OKAY) { in mp_gcd()
51 if ((res = mp_div_2d(&u, k, &u, NULL)) != MP_OKAY) { in mp_gcd()
55 if ((res = mp_div_2d(&v, k, &v, NULL)) != MP_OKAY) { in mp_gcd()
62 if ((res = mp_div_2d(&u, u_lsb - k, &u, NULL)) != MP_OKAY) { in mp_gcd()
68 if ((res = mp_div_2d(&v, v_lsb - k, &v, NULL)) != MP_OKAY) { in mp_gcd()
81 if ((res = s_mp_sub(&v, &u, &v)) != MP_OKAY) { in mp_gcd()
86 if ((res = mp_div_2d(&v, mp_cnt_lsb(&v), &v, NULL)) != MP_OKAY) { in mp_gcd()
92 if ((res = mp_mul_2d (&u, k, c)) != MP_OKAY) { in mp_gcd()
96 res = MP_OKAY; in mp_gcd()
Dbn_mp_prime_next_prime.c54 return MP_OKAY; in mp_prime_next_prime()
60 return MP_OKAY; in mp_prime_next_prime()
67 return MP_OKAY; in mp_prime_next_prime()
84 if ((err = mp_sub_d(a, (a->dp[0] & 3) + 1, a)) != MP_OKAY) { return err; }; in mp_prime_next_prime()
89 if ((err = mp_sub_d(a, 1, a)) != MP_OKAY) { in mp_prime_next_prime()
97 if ((err = mp_mod_d(a, ltm_prime_tab[x], res_tab + x)) != MP_OKAY) { in mp_prime_next_prime()
103 if ((err = mp_init(&b)) != MP_OKAY) { in mp_prime_next_prime()
135 if ((err = mp_add_d(a, step, a)) != MP_OKAY) { in mp_prime_next_prime()
147 if ((err = mp_prime_miller_rabin(a, &b, &res)) != MP_OKAY) { in mp_prime_next_prime()
160 err = MP_OKAY; in mp_prime_next_prime()
Dbn_mp_is_square.c57 return MP_OKAY; in mp_is_square()
62 return MP_OKAY; in mp_is_square()
66 if ((res = mp_mod_d(arg,105,&c)) != MP_OKAY) { in mp_is_square()
70 return MP_OKAY; in mp_is_square()
74 if ((res = mp_init_set_int(&t,11L*13L*17L*19L*23L*29L*31L)) != MP_OKAY) { in mp_is_square()
77 if ((res = mp_mod(arg,&t,&t)) != MP_OKAY) { in mp_is_square()
94 if ((res = mp_sqrt(arg,&t)) != MP_OKAY) { in mp_is_square()
97 if ((res = mp_sqr(&t,&t)) != MP_OKAY) { in mp_is_square()
Dbn_mp_jacobi.c35 return MP_OKAY; in mp_jacobi()
41 return MP_OKAY; in mp_jacobi()
48 if ((res = mp_init_copy (&a1, a)) != MP_OKAY) { in mp_jacobi()
52 if ((res = mp_init (&p1)) != MP_OKAY) { in mp_jacobi()
58 if ((res = mp_div_2d(&a1, k, &a1, NULL)) != MP_OKAY) { in mp_jacobi()
86 if ((res = mp_mod (p, &a1, &p1)) != MP_OKAY) { in mp_jacobi()
89 if ((res = mp_jacobi (&p1, &a1, &r)) != MP_OKAY) { in mp_jacobi()
96 res = MP_OKAY; in mp_jacobi()
/external/dropbear/libtommath/pre_gen/
Dmpi.c23 { MP_OKAY, "Successful" },
87 if ((res = mp_init_multi(&x, &y, &u, &v, &B, &D, NULL)) != MP_OKAY) { in fast_mp_invmod()
92 if ((res = mp_copy (b, &x)) != MP_OKAY) { in fast_mp_invmod()
97 if ((res = mp_mod (a, b, &y)) != MP_OKAY) { in fast_mp_invmod()
102 if ((res = mp_copy (&x, &u)) != MP_OKAY) { in fast_mp_invmod()
105 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in fast_mp_invmod()
114 if ((res = mp_div_2 (&u, &u)) != MP_OKAY) { in fast_mp_invmod()
119 if ((res = mp_sub (&B, &x, &B)) != MP_OKAY) { in fast_mp_invmod()
124 if ((res = mp_div_2 (&B, &B)) != MP_OKAY) { in fast_mp_invmod()
132 if ((res = mp_div_2 (&v, &v)) != MP_OKAY) { in fast_mp_invmod()
[all …]
/external/dropbear/libtommath/mtest/
Dmpi.c254 if((res = mp_init(&mp[pos])) != MP_OKAY) in mp_init_array()
258 return MP_OKAY; in mp_init_array()
291 return MP_OKAY; in mp_init_size()
312 return MP_OKAY; in mp_init_copy()
322 return MP_OKAY; in mp_init_copy()
343 return MP_OKAY; in mp_copy()
381 return MP_OKAY; in mp_copy()
502 return MP_OKAY; /* shortcut for zero */ in mp_set_int()
506 if((res = s_mp_mul_2d(mp, CHAR_BIT)) != MP_OKAY) in mp_set_int()
511 if(res != MP_OKAY) in mp_set_int()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dlibtommath.c90 #define MP_OKAY 0 /* ok result */ macro
227 if ((res = mp_grow (c, max + 1)) != MP_OKAY) { in s_mp_add()
290 return MP_OKAY; in s_mp_add()
305 if ((res = mp_grow (c, max)) != MP_OKAY) { in s_mp_sub()
357 return MP_OKAY; in s_mp_sub()
383 return MP_OKAY; in mp_init()
532 if ((res = mp_init (&t)) != MP_OKAY) { in mp_mulmod()
536 if ((res = mp_mul (a, b, &t)) != MP_OKAY) { in mp_mulmod()
552 if ((res = mp_init (&t)) != MP_OKAY) { in mp_mod()
556 if ((res = mp_div (a, b, NULL, &t)) != MP_OKAY) { in mp_mod()
[all …]
/external/wpa_supplicant/
Dlibtommath.c67 #define MP_OKAY 0 /* ok result */ macro
187 if ((res = mp_grow (c, max + 1)) != MP_OKAY) { in s_mp_add()
250 return MP_OKAY; in s_mp_add()
265 if ((res = mp_grow (c, max)) != MP_OKAY) { in s_mp_sub()
317 return MP_OKAY; in s_mp_sub()
343 return MP_OKAY; in mp_init()
492 if ((res = mp_init (&t)) != MP_OKAY) { in mp_mulmod()
496 if ((res = mp_mul (a, b, &t)) != MP_OKAY) { in mp_mulmod()
512 if ((res = mp_init (&t)) != MP_OKAY) { in mp_mod()
516 if ((res = mp_div (a, b, NULL, &t)) != MP_OKAY) { in mp_mod()
[all …]
/external/dropbear/libtommath/etc/
Dpprime.c184 return MP_OKAY; in pprime()
187 if ((res = mp_init (&c)) != MP_OKAY) { in pprime()
191 if ((res = mp_init (&v)) != MP_OKAY) { in pprime()
199 10)) != MP_OKAY) { in pprime()
203 if ((res = mp_init (&a)) != MP_OKAY) { in pprime()
210 if ((res = mp_init (&b)) != MP_OKAY) { in pprime()
214 if ((res = mp_init (&n)) != MP_OKAY) { in pprime()
218 if ((res = mp_init (&x)) != MP_OKAY) { in pprime()
222 if ((res = mp_init (&y)) != MP_OKAY) { in pprime()
226 if ((res = mp_init (&z)) != MP_OKAY) { in pprime()
[all …]
Dmersenne.c16 if ((res = mp_init (&n)) != MP_OKAY) { in is_mersenne()
20 if ((res = mp_init (&u)) != MP_OKAY) { in is_mersenne()
25 if ((res = mp_2expt(&n, s)) != MP_OKAY) { in is_mersenne()
28 if ((res = mp_sub_d (&n, 1, &n)) != MP_OKAY) { in is_mersenne()
38 if ((res = mp_sqr (&u, &u)) != MP_OKAY) { in is_mersenne()
41 if ((res = mp_sub_d (&u, 2, &u)) != MP_OKAY) { in is_mersenne()
47 if ((res = mp_add (&u, &n, &u)) != MP_OKAY) { in is_mersenne()
53 if ((res = mp_reduce_2k (&u, &n, 1)) != MP_OKAY) { in is_mersenne()
64 res = MP_OKAY; in is_mersenne()
118 if (is_mersenne (k, &pp) != MP_OKAY) { in main()
/external/dropbear/
Dgendss.c83 if (mp_prime_next_prime(key->q, 18, 0) != MP_OKAY) { in getq()
102 if (mp_mul_d(key->q, 2, &temp2q) != MP_OKAY) { in getp()
119 if (mp_mod(&tempX, &temp2q, &tempC) != MP_OKAY) { in getp()
125 if (mp_sub(&tempX, &tempC, &tempP) != MP_OKAY) { in getp()
130 if (mp_add_d(&tempP, 1, key->p) != MP_OKAY) { in getp()
137 if (mp_prime_is_prime(key->p, 5, &result) != MP_OKAY) { in getp()
157 if (mp_sub_d(key->p, 1, &val) != MP_OKAY) { in getg()
161 if (mp_div(&val, key->q, &div, NULL) != MP_OKAY) { in getg()
170 if (mp_exptmod(&h, &div, key->p, key->g) != MP_OKAY) { in getg()
175 if (mp_add_d(&h, 1, &h) != MP_OKAY) { in getg()
[all …]
Ddss.c203 if (mp_invmod(&val1, key->q, &val2) != MP_OKAY) { in buf_dss_verify()
212 if (mp_mulmod(&val1, &val2, key->q, &val3) != MP_OKAY) { in buf_dss_verify()
224 if (mp_mulmod(&val1, &val2, key->q, &val4) != MP_OKAY) { in buf_dss_verify()
230 if (mp_exptmod(key->g, &val3, key->p, &val2) != MP_OKAY) { in buf_dss_verify()
234 if (mp_exptmod(key->y, &val4, key->p, &val3) != MP_OKAY) { in buf_dss_verify()
238 if (mp_mulmod(&val2, &val3, key->p, &val4) != MP_OKAY) { in buf_dss_verify()
242 if (mp_mod(&val4, key->q, &val2) != MP_OKAY) { in buf_dss_verify()
272 if (mp_to_unsigned_bin(mp, ret) != MP_OKAY) { in mptobytes()
344 if (mp_mod(&dss_protok, key->q, &dss_k) != MP_OKAY) { in buf_put_dss_sign()
357 if (mp_exptmod(key->g, &dss_k, key->p, &dss_temp1) != MP_OKAY) { in buf_put_dss_sign()
[all …]

12345