Lines Matching refs:mp_err

132 mp_err mp_init(mp_int *mp, int kmflag)  in mp_init()
150 mp_err mp_init_size(mp_int *mp, mp_size prec, int kmflag) in mp_init_size()
179 mp_err mp_init_copy(mp_int *mp, const mp_int *from) in mp_init_copy()
211 mp_err mp_copy(const mp_int *from, mp_int *to) in mp_copy()
354 mp_err mp_set_int(mp_int *mp, long z) in mp_set_int()
358 mp_err res; in mp_set_int()
389 mp_err mp_set_ulong(mp_int *mp, unsigned long z) in mp_set_ulong()
392 mp_err res; in mp_set_ulong()
429 mp_err mp_add_d(const mp_int *a, mp_digit d, mp_int *b) in mp_add_d()
432 mp_err res; in mp_add_d()
473 mp_err mp_sub_d(const mp_int *a, mp_digit d, mp_int *b) in mp_sub_d()
476 mp_err res; in mp_sub_d()
518 mp_err mp_mul_d(const mp_int *a, mp_digit d, mp_int *b) in mp_mul_d()
520 mp_err res; in mp_mul_d()
542 mp_err mp_mul_2(const mp_int *a, mp_int *c) in mp_mul_2()
544 mp_err res; in mp_mul_2()
567 mp_err mp_div_d(const mp_int *a, mp_digit d, mp_int *q, mp_digit *r) in mp_div_d()
569 mp_err res; in mp_div_d()
626 mp_err mp_div_2(const mp_int *a, mp_int *c) in mp_div_2()
628 mp_err res; in mp_div_2()
645 mp_err mp_expt_d(const mp_int *a, mp_digit d, mp_int *c) in mp_expt_d()
648 mp_err res; in mp_expt_d()
697 mp_err mp_abs(const mp_int *a, mp_int *b) in mp_abs()
699 mp_err res; in mp_abs()
722 mp_err mp_neg(const mp_int *a, mp_int *b) in mp_neg()
724 mp_err res; in mp_neg()
750 mp_err mp_add(const mp_int *a, const mp_int *b, mp_int *c) in mp_add()
752 mp_err res; in mp_add()
782 mp_err mp_sub(const mp_int *a, const mp_int *b, mp_int *c) in mp_sub()
784 mp_err res; in mp_sub()
823 mp_err mp_mul(const mp_int *a, const mp_int *b, mp_int * c) in mp_mul()
827 mp_err res; in mp_mul()
920 mp_err mp_sqr(const mp_int *a, mp_int *sqr) in mp_sqr()
924 mp_err res; in mp_sqr()
1010 mp_err mp_div(const mp_int *a, const mp_int *b, mp_int *q, mp_int *r) in mp_div()
1012 mp_err res; in mp_div()
1096 mp_err mp_div_2d(const mp_int *a, mp_digit d, mp_int *q, mp_int *r) in mp_div_2d()
1098 mp_err res; in mp_div_2d()
1132 mp_err mp_expt(mp_int *a, mp_int *b, mp_int *c) in mp_expt()
1135 mp_err res; in mp_expt()
1205 mp_err mp_2expt(mp_int *a, mp_digit k) in mp_2expt()
1223 mp_err mp_mod(const mp_int *a, const mp_int *m, mp_int *c) in mp_mod()
1225 mp_err res; in mp_mod()
1283 mp_err mp_mod_d(const mp_int *a, mp_digit d, mp_digit *c) in mp_mod_d()
1285 mp_err res; in mp_mod_d()
1325 mp_err mp_sqrt(const mp_int *a, mp_int *b) in mp_sqrt()
1328 mp_err res; in mp_sqrt()
1406 mp_err mp_addmod(const mp_int *a, const mp_int *b, const mp_int *m, mp_int *c) in mp_addmod()
1408 mp_err res; in mp_addmod()
1431 mp_err mp_submod(const mp_int *a, const mp_int *b, const mp_int *m, mp_int *c) in mp_submod()
1433 mp_err res; in mp_submod()
1456 mp_err mp_mulmod(const mp_int *a, const mp_int *b, const mp_int *m, mp_int *c) in mp_mulmod()
1458 mp_err res; in mp_mulmod()
1476 mp_err mp_sqrmod(const mp_int *a, const mp_int *m, mp_int *c) in mp_sqrmod()
1478 mp_err res; in mp_sqrmod()
1507 mp_err s_mp_exptmod(const mp_int *a, const mp_int *b, const mp_int *m, mp_int *c) in s_mp_exptmod()
1510 mp_err res; in s_mp_exptmod()
1593 mp_err mp_exptmod_d(const mp_int *a, mp_digit d, const mp_int *m, mp_int *c) in mp_exptmod_d()
1596 mp_err res; in mp_exptmod_d()
1791 mp_err mp_gcd(mp_int *a, mp_int *b, mp_int *c) in mp_gcd()
1793 mp_err res; in mp_gcd()
1893 mp_err mp_lcm(mp_int *a, mp_int *b, mp_int *c) in mp_lcm()
1896 mp_err res; in mp_lcm()
1935 mp_err mp_xgcd(const mp_int *a, const mp_int *b, mp_int *g, mp_int *x, mp_int *y) in mp_xgcd()
1939 mp_err res; in mp_xgcd()
2092 mp_err s_mp_almost_inverse(const mp_int *a, const mp_int *p, mp_int *c) in s_mp_almost_inverse()
2094 mp_err res; in s_mp_almost_inverse()
2095 mp_err k = 0; in s_mp_almost_inverse()
2182 mp_err s_mp_fixup_reciprocal(const mp_int *c, const mp_int *p, int k, mp_int *x) in s_mp_fixup_reciprocal()
2187 mp_err res; in s_mp_fixup_reciprocal()
2220 mp_err s_mp_invmod_odd_m(const mp_int *a, const mp_int *m, mp_int *c) in s_mp_invmod_odd_m()
2223 mp_err res; in s_mp_invmod_odd_m()
2258 mp_err mp_invmod_xgcd(const mp_int *a, const mp_int *m, mp_int *c) in mp_invmod_xgcd()
2261 mp_err res; in mp_invmod_xgcd()
2292 mp_err s_mp_invmod_2d(const mp_int *a, mp_size k, mp_int *c) in s_mp_invmod_2d()
2294 mp_err res; in s_mp_invmod_2d()
2349 mp_err s_mp_invmod_even_m(const mp_int *a, const mp_int *m, mp_int *c) in s_mp_invmod_even_m()
2351 mp_err res; in s_mp_invmod_even_m()
2433 mp_err mp_invmod(const mp_int *a, const mp_int *m, mp_int *c) in mp_invmod()
2497 mp_err mp_read_raw(mp_int *mp, char *str, int len) in mp_read_raw()
2500 mp_err res; in mp_read_raw()
2541 mp_err mp_toraw(mp_int *mp, char *str) in mp_toraw()
2576 mp_err mp_read_radix(mp_int *mp, const char *str, int radix) in mp_read_radix()
2579 mp_err res; in mp_read_radix()
2620 mp_err mp_read_variable_radix(mp_int *a, const char * str, int default_radix) in mp_read_variable_radix()
2625 mp_err res; in mp_read_variable_radix()
2680 mp_err mp_toradix(mp_int *mp, char *str, int radix) in mp_toradix()
2691 mp_err res; in mp_toradix()
2765 const char *mp_strerror(mp_err ec) in mp_strerror()
2790 mp_err s_mp_grow(mp_int *mp, mp_size min) in s_mp_grow()
2820 mp_err s_mp_pad(mp_int *mp, mp_size min) in s_mp_pad()
2823 mp_err res; in s_mp_pad()
2964 mp_err s_mp_lshd(mp_int *mp, mp_size p) in s_mp_lshd()
2966 mp_err res; in s_mp_lshd()
3001 mp_err s_mp_mul_2d(mp_int *mp, mp_digit d) in s_mp_mul_2d()
3003 mp_err res; in s_mp_mul_2d()
3094 mp_err s_mp_mul_2(mp_int *mp) in s_mp_mul_2()
3112 mp_err res; in s_mp_mul_2()
3199 mp_err s_mp_norm(mp_int *a, mp_int *b, mp_digit *pd) in s_mp_norm()
3204 mp_err res = MP_OKAY; in s_mp_norm()
3234 mp_err s_mp_add_d(mp_int *mp, mp_digit d) /* unsigned digit addition */ in s_mp_add_d()
3252 mp_err res; in s_mp_add_d()
3264 mp_err res = MP_OKAY; in s_mp_add_d()
3291 mp_err s_mp_sub_d(mp_int *mp, mp_digit d) /* unsigned digit subtract */ in s_mp_sub_d()
3341 mp_err s_mp_mul_d(mp_int *a, mp_digit d) in s_mp_mul_d()
3343 mp_err res; in s_mp_mul_d()
3380 mp_err s_mp_div_d(mp_int *mp, mp_digit d, mp_digit *r) in s_mp_div_d()
3388 mp_err res; in s_mp_div_d()
3495 mp_err s_mp_add(mp_int *a, const mp_int *b) /* magnitude addition */ in s_mp_add()
3505 mp_err res; in s_mp_add()
3581 mp_err s_mp_add_3arg(const mp_int *a, const mp_int *b, mp_int *c) in s_mp_add_3arg()
3591 mp_err res; in s_mp_add_3arg()
3670 mp_err s_mp_add_offset(mp_int *a, mp_int *b, mp_size offset) in s_mp_add_offset()
3680 mp_err res; in s_mp_add_offset()
3756 mp_err s_mp_sub(mp_int *a, const mp_int *b) /* magnitude subtract */ in s_mp_sub()
3822 mp_err s_mp_sub_3arg(const mp_int *a, const mp_int *b, mp_int *c) in s_mp_sub_3arg()
3831 mp_err res; in s_mp_sub_3arg()
3894 mp_err s_mp_mul(mp_int *a, const mp_int *b) in s_mp_mul()
4147 mp_err s_mpv_div_2dx1d(mp_digit Nhi, mp_digit Nlo, mp_digit divisor, in s_mpv_div_2dx1d()
4187 mp_err s_mp_sqr(mp_int *a) in s_mp_sqr()
4189 mp_err res; in s_mp_sqr()
4213 mp_err s_mp_div(mp_int *rem, /* i: dividend, o: remainder */ in s_mp_div()
4223 mp_err res; in s_mp_div()
4351 mp_err s_mp_2expt(mp_int *a, mp_digit k) in s_mp_2expt()
4353 mp_err res; in s_mp_2expt()
4386 mp_err s_mp_reduce(mp_int *x, const mp_int *m, const mp_int *mu) in s_mp_reduce()
4389 mp_err res; in s_mp_reduce()
4685 mp_err
4689 mp_err res; in mp_read_unsigned_octets()
4759 mp_err
4791 mp_err
4831 mp_err