Home | History | Annotate | Download | only in mtest

Lines Matching full:mp_err

160 mp_err   s_mp_grow(mp_int *mp, mp_size min);   /* increase allocated size */
161 mp_err s_mp_pad(mp_int *mp, mp_size min); /* left pad with zeroes */
167 mp_err s_mp_lshd(mp_int *mp, mp_size p); /* left-shift by p digits */
171 mp_err s_mp_mul_2d(mp_int *mp, mp_digit d); /* multiply by 2^d in place*/
173 mp_err s_mp_mul_2(mp_int *mp); /* multiply by 2 in place */
175 mp_err s_mp_add_d(mp_int *mp, mp_digit d); /* unsigned digit addition */
176 mp_err s_mp_sub_d(mp_int *mp, mp_digit d); /* unsigned digit subtract */
177 mp_err s_mp_mul_d(mp_int *mp, mp_digit d); /* unsigned digit multiply */
178 mp_err s_mp_div_d(mp_int *mp, mp_digit d, mp_digit *r);
180 mp_err s_mp_reduce(mp_int *x, mp_int *m, mp_int *mu);
182 mp_err s_mp_add(mp_int *a, mp_int *b); /* magnitude addition */
183 mp_err s_mp_sub(mp_int *a, mp_int *b); /* magnitude subtract */
184 mp_err s_mp_mul(mp_int *a, mp_int *b); /* magnitude multiply */
190 mp_err s_mp_sqr(mp_int *a); /* magnitude square */
194 mp_err s_mp_div(mp_int *a, mp_int *b); /* magnitude divide */
195 mp_err s_mp_2expt(mp_int *a, mp_digit k); /* a = 2^k */
236 mp_err mp_init(mp_int *mp)
246 mp_err mp_init_array(mp_int mp[], int count)
248 mp_err res;
280 mp_err mp_init_size(mp_int *mp, mp_size prec)
307 mp_err mp_init_copy(mp_int *mp, mp_int *from)
338 mp_err mp_copy(mp_int *from, mp_int *to)
492 mp_err mp_set_int(mp_int *mp, long z)
496 mp_err res;
537 mp_err mp_add_d(mp_int *a, mp_digit d, mp_int *b)
539 mp_err res = MP_OKAY;
571 mp_err mp_sub_d(mp_int *a, mp_digit d, mp_int *b)
573 mp_err res;
613 mp_err mp_mul_d(mp_int *a, mp_digit d, mp_int *b)
615 mp_err res;
637 mp_err mp_mul_2(mp_int *a, mp_int *c)
639 mp_err res;
662 mp_err mp_div_d(mp_int *a, mp_digit d, mp_int *q, mp_digit *r)
664 mp_err res;
739 mp_err mp_div_2(mp_int *a, mp_int *c)
741 mp_err res;
758 mp_err mp_expt_d(mp_int *a, mp_digit d, mp_int *c)
761 mp_err res;
810 mp_err mp_abs(mp_int *a, mp_int *b)
812 mp_err res;
835 mp_err mp_neg(mp_int *a, mp_int *b)
837 mp_err res;
863 mp_err mp_add(mp_int *a, mp_int *b, mp_int *c)
865 mp_err res;
963 mp_err mp_sub(mp_int *a, mp_int *b, mp_int *c)
965 mp_err res;
1049 mp_err mp_mul(mp_int *a, mp_int *b, mp_int *c)
1051 mp_err res;
1089 mp_err mp_mul_2d(mp_int *a, mp_digit d, mp_int *c)
1091 mp_err res;
1110 mp_err mp_sqr(mp_int *a, mp_int *b)
1112 mp_err res;
1143 mp_err mp_div(mp_int *a, mp_int *b, mp_int *q, mp_int *r)
1145 mp_err res;
1227 mp_err mp_div_2d(mp_int *a, mp_digit d, mp_int *q, mp_int *r)
1229 mp_err res;
1262 mp_err mp_expt(mp_int *a, mp_int *b, mp_int *c)
1265 mp_err res;
1335 mp_err mp_2expt(mp_int *a, mp_digit k)
1353 mp_err mp_mod(mp_int *a, mp_int *m, mp_int *c)
1355 mp_err res;
1413 mp_err mp_mod_d(mp_int *a, mp_digit d, mp_digit *c)
1415 mp_err res;
1455 mp_err mp_sqrt(mp_int *a, mp_int *b)
1458 mp_err res;
1533 mp_err mp_addmod(mp_int *a, mp_int *b, mp_int *m, mp_int *c)
1535 mp_err res;
1558 mp_err mp_submod(mp_int *a, mp_int *b, mp_int *m, mp_int *c)
1560 mp_err res;
1583 mp_err mp_mulmod(mp_int *a, mp_int *b, mp_int *m, mp_int *c)
1585 mp_err res;
1603 mp_err mp_sqrmod(mp_int *a, mp_int *m, mp_int *c)
1605 mp_err res;
1634 mp_err mp_exptmod(mp_int *a, mp_int *b, mp_int *m, mp_int *c)
1637 mp_err res;
1721 mp_err mp_exptmod_d(mp_int *a, mp_digit d, mp_int *m, mp_int *c)
1724 mp_err res;
1919 mp_err mp_gcd(mp_int *a, mp_int *b, mp_int *c)
1921 mp_err res;
2021 mp_err mp_lcm(mp_int *a, mp_int *b, mp_int *c)
2024 mp_err res;
2062 mp_err mp_xgcd(mp_int *a, mp_int *b, mp_int *g, mp_int *x, mp_int *y)
2066 mp_err res;
2183 mp_err mp_invmod(mp_int *a, mp_int *m, mp_int *c)
2186 mp_err res;
2264 mp_err mp_read_signed_bin(mp_int *mp, unsigned char *str, int len)
2266 mp_err res;
2298 mp_err mp_to_signed_bin(mp_int *mp, unsigned char *str)
2319 mp_err mp_read_unsigned_bin(mp_int *mp, unsigned char *str, int len)
2322 mp_err res;
2371 mp_err mp_to_unsigned_bin(mp_int *mp, unsigned char *str)
2459 mp_err mp_read_radix(mp_int *mp, unsigned char *str, int radix)
2462 mp_err res;
2544 mp_err mp_toradix(mp_int *mp, unsigned char *str, int radix)
2555 mp_err res;
2629 const char *mp_strerror(mp_err ec)
2654 mp_err s_mp_grow(mp_int *mp, mp_size min)
2684 mp_err s_mp_pad(mp_int *mp, mp_size min)
2687 mp_err res;
2815 mp_err s_mp_lshd(mp_int *mp, mp_size p)
2817 mp_err res;
2899 mp_err s_mp_mul_2(mp_int *mp)
2903 mp_err res;
2968 mp_err s_mp_mul_2d(mp_int *mp, mp_digit d)
2970 mp_err res;
3088 mp_err s_mp_add_d(mp_int *mp, mp_digit d) /* unsigned digit addition */
3106 mp_err res;
3123 mp_err s_mp_sub_d(mp_int *mp, mp_digit d) /* unsigned digit subtract */
3158 mp_err s_mp_mul_d(mp_int *a, mp_digit d)
3162 mp_err res;
3212 mp_err s_mp_div_d(mp_int *mp, mp_digit d, mp_digit *r)
3216 mp_err res;
3265 mp_err s_mp_add(mp_int *a, mp_int *b) /* magnitude addition */
3270 mp_err res;
3322 mp_err s_mp_sub(mp_int *a, mp_int *b) /* magnitude subtract */
3368 mp_err s_mp_reduce(mp_int *x, mp_int *m, mp_int *mu)
3371 mp_err res;
3423 mp_err s_mp_mul(mp_int *a, mp_int *b)
3427 mp_err res;
3511 mp_err s_mp_sqr(mp_int *a)
3515 mp_err res;
3626 mp_err s_mp_div(mp_int *a, mp_int *b)
3630 mp_err res;
3749 mp_err s_mp_2expt(mp_int *a, mp_digit k)
3751 mp_err res;