Home
last modified time | relevance | path

Searched refs:mp_add (Results 1 – 25 of 36) sorted by relevance

12

/external/dropbear/libtommath/
Dbn_mp_toom_mul.c86 if ((res = mp_add(&tmp1, &a1, &tmp1)) != MP_OKAY) { in mp_toom_mul()
92 if ((res = mp_add(&tmp1, &a2, &tmp1)) != MP_OKAY) { in mp_toom_mul()
99 if ((res = mp_add(&tmp2, &b1, &tmp2)) != MP_OKAY) { in mp_toom_mul()
105 if ((res = mp_add(&tmp2, &b2, &tmp2)) != MP_OKAY) { in mp_toom_mul()
117 if ((res = mp_add(&tmp1, &a1, &tmp1)) != MP_OKAY) { in mp_toom_mul()
123 if ((res = mp_add(&tmp1, &a0, &tmp1)) != MP_OKAY) { in mp_toom_mul()
130 if ((res = mp_add(&tmp2, &b1, &tmp2)) != MP_OKAY) { in mp_toom_mul()
136 if ((res = mp_add(&tmp2, &b0, &tmp2)) != MP_OKAY) { in mp_toom_mul()
146 if ((res = mp_add(&a2, &a1, &tmp1)) != MP_OKAY) { in mp_toom_mul()
149 if ((res = mp_add(&tmp1, &a0, &tmp1)) != MP_OKAY) { in mp_toom_mul()
[all …]
Dbn_mp_toom_sqr.c63 if ((res = mp_add(&tmp1, &a1, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
69 if ((res = mp_add(&tmp1, &a2, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
81 if ((res = mp_add(&tmp1, &a1, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
87 if ((res = mp_add(&tmp1, &a0, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
97 if ((res = mp_add(&a2, &a1, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
100 if ((res = mp_add(&tmp1, &a0, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
204 if ((res = mp_add(&w0, &w1, b)) != MP_OKAY) { in mp_toom_sqr()
207 if ((res = mp_add(&w2, &w3, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
210 if ((res = mp_add(&w4, &tmp1, &tmp1)) != MP_OKAY) { in mp_toom_sqr()
213 if ((res = mp_add(&tmp1, b, b)) != MP_OKAY) { in mp_toom_sqr()
Dbn_mp_karatsuba_mul.c134 if (mp_add (&x0y0, &x1y1, &x0) != MP_OKAY) in mp_karatsuba_mul()
145 if (mp_add (&x0y0, &t1, &t1) != MP_OKAY) in mp_karatsuba_mul()
147 if (mp_add (&t1, &x1y1, c) != MP_OKAY) in mp_karatsuba_mul()
Dbn_mp_invmod_slow.c69 if ((res = mp_add (&A, &y, &A)) != MP_OKAY) { in mp_invmod_slow()
94 if ((res = mp_add (&C, &y, &C)) != MP_OKAY) { in mp_invmod_slow()
153 if ((res = mp_add(&C, b, &C)) != MP_OKAY) { in mp_invmod_slow()
Dbn_mp_sqrt.c50 if ((res = mp_add(&t1,&t2,&t1)) != MP_OKAY) { in mp_sqrt()
61 if ((res = mp_add(&t1,&t2,&t1)) != MP_OKAY) { in mp_sqrt()
Dbn_mp_karatsuba_sqr.c101 if (mp_add (&x0x0, &t1, &t1) != MP_OKAY) in mp_karatsuba_sqr()
103 if (mp_add (&t1, &x1x1, b) != MP_OKAY) in mp_karatsuba_sqr()
Dbn_mp_addmod.c29 if ((res = mp_add (a, b, &t)) != MP_OKAY) { in mp_addmod()
Dbn_mp_mod.c35 res = mp_add (b, &t, c); in mp_mod()
Dbn_mp_add.c19 int mp_add (mp_int * a, mp_int * b, mp_int * c) in mp_add() function
Dbn_mp_reduce.c80 if ((res = mp_add (x, &q, x)) != MP_OKAY) in mp_reduce()
Dbn_mp_div.c62 ((res = mp_add(&q, &tq, &q)) != MP_OKAY)) { in mp_div()
250 if ((res = mp_add (&x, &t1, &x)) != MP_OKAY) { in mp_div()
Dbn_fast_mp_invmod.c133 if ((res = mp_add (&D, b, &D)) != MP_OKAY) { in fast_mp_invmod()
/external/dropbear/libtomcrypt/src/pk/ecc/
Dltc_ecc_projective_dbl_point.c61 if ((err = mp_add(R->z, R->z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
69 if ((err = mp_add(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
72 if ((err = mp_add(t1, R->x, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
80 if ((err = mp_add(t2, t2, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
85 if ((err = mp_add(t1, t2, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
91 if ((err = mp_add(R->y, R->y, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
103 if ((err = mp_add(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
116 if ((err = mp_add(R->x, modulus, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
121 if ((err = mp_add(R->x, modulus, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
127 if ((err = mp_add(R->y, modulus, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
[all …]
Dltc_ecc_projective_add_point.c96 if ((err = mp_add(y, modulus, y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
99 if ((err = mp_add(t1, t1, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
104 if ((err = mp_add(t1, y, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
111 if ((err = mp_add(x, modulus, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
114 if ((err = mp_add(t2, t2, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
119 if ((err = mp_add(t2, x, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
154 if ((err = mp_add(x, modulus, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
160 if ((err = mp_add(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
165 if ((err = mp_add(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
173 if ((err = mp_add(y, modulus, y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
[all …]
Decc_import.c51 …if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto … in is_point()
52 …if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto … in is_point()
53 …if ((err = mp_add(t1, key->pubkey.x, t1)) != CRYPT_OK) { goto … in is_point()
56 …if ((err = mp_add(t1, prime, t1)) != CRYPT_OK) { goto err… in is_point()
Decc_sign_hash.c87 …if ((err = mp_add(e, s, s)) != CRYPT_OK) { goto error; } /* s = e + x… in ecc_sign_hash()
/external/dropbear/libtommath/pre_gen/
Dmpi.c185 if ((res = mp_add (&D, b, &D)) != MP_OKAY) { in fast_mp_invmod()
829 int mp_add (mp_int * a, mp_int * b, mp_int * c) in mp_add() function
1012 if ((res = mp_add (a, b, &t)) != MP_OKAY) { in mp_addmod()
1617 ((res = mp_add(&q, &tq, &q)) != MP_OKAY)) { in mp_div()
1805 if ((res = mp_add (&x, &t1, &x)) != MP_OKAY) { in mp_div()
3762 if ((res = mp_add (&A, &y, &A)) != MP_OKAY) { in mp_invmod_slow()
3787 if ((res = mp_add (&C, &y, &C)) != MP_OKAY) { in mp_invmod_slow()
3846 if ((res = mp_add(&C, b, &C)) != MP_OKAY) { in mp_invmod_slow()
4228 if (mp_add (&x0y0, &x1y1, &x0) != MP_OKAY) in mp_karatsuba_mul()
4239 if (mp_add (&x0y0, &t1, &t1) != MP_OKAY) in mp_karatsuba_mul()
[all …]
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_make_key.c65 …if ((err = mp_add(key->q, key->q, tmp)) != CRYPT_OK) { goto error; } in dsa_make_key()
89 … if ((err = mp_add(tmp, key->p, key->p)) != CRYPT_OK) { goto error; } in dsa_make_key()
Ddsa_sign_hash.c95 …if ((err = mp_add(s, tmp, s)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/
Dder_encode_integer.c110 if (mp_2expt(tmp, y) != CRYPT_OK || mp_add(tmp, num, tmp) != CRYPT_OK) { in der_encode_integer()
/external/dropbear/libtommath/etc/
Dmersenne.c47 if ((res = mp_add (&u, &n, &u)) != MP_OKAY) { in is_mersenne()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_exptmod.c77 …if ((err = mp_add(tmp, tmpb, tmp)) != CRYPT_OK) { go… in rsa_exptmod()
/external/llvm/test/CodeGen/X86/
D2007-11-30-LoadFolding-Bug.ll71 tail call fastcc void @mp_add( i32 0, i32 %radix, i32* %tmp1, i32* %tmp2, i32* %tmp1 )
78 declare fastcc void @mp_add(i32, i32, i32*, i32*, i32*)
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_exptmod.c77 …if ((err = mp_add(tmp, tmpb, tmp)) != CRYPT_OK) { go… in katja_exptmod()
/external/wpa_supplicant_8/src/tls/
Dbignum.c143 if (mp_add((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_add()

12