Lines Matching refs:mp_err
187 mp_err s_mp_grow(mp_int *mp, mp_size min); /* increase allocated size */
188 mp_err s_mp_pad(mp_int *mp, mp_size min); /* left pad with zeroes */
202 mp_err s_mp_lshd(mp_int *mp, mp_size p); /* left-shift by p digits */
204 mp_err s_mp_mul_2d(mp_int *mp, mp_digit d); /* multiply by 2^d in place */
208 mp_err s_mp_mul_2(mp_int *mp); /* multiply by 2 in place */
209 mp_err s_mp_norm(mp_int *a, mp_int *b, mp_digit *pd);
211 mp_err s_mp_add_d(mp_int *mp, mp_digit d); /* unsigned digit addition */
212 mp_err s_mp_sub_d(mp_int *mp, mp_digit d); /* unsigned digit subtract */
213 mp_err s_mp_mul_d(mp_int *mp, mp_digit d); /* unsigned digit multiply */
214 mp_err s_mp_div_d(mp_int *mp, mp_digit d, mp_digit *r);
216 mp_err s_mp_reduce(mp_int *x, const mp_int *m, const mp_int *mu);
218 mp_err s_mp_add(mp_int *a, const mp_int *b); /* magnitude addition */
219 mp_err s_mp_add_3arg(const mp_int *a, const mp_int *b, mp_int *c);
220 mp_err s_mp_sub(mp_int *a, const mp_int *b); /* magnitude subtract */
221 mp_err s_mp_sub_3arg(const mp_int *a, const mp_int *b, mp_int *c);
222 mp_err s_mp_add_offset(mp_int *a, mp_int *b, mp_size offset);
224 mp_err s_mp_mul(mp_int *a, const mp_int *b); /* magnitude multiply */
226 mp_err s_mp_sqr(mp_int *a); /* magnitude square */
230 mp_err s_mp_div(mp_int *rem, mp_int *div, mp_int *quot); /* magnitude div */
231 mp_err s_mp_exptmod(const mp_int *a, const mp_int *b, const mp_int *m, mp_int *c);
232 mp_err s_mp_2expt(mp_int *a, mp_digit k); /* a = 2^k */
242 mp_err s_mp_invmod_odd_m( const mp_int *a, const mp_int *m, mp_int *c);
243 mp_err s_mp_invmod_2d( const mp_int *a, mp_size k, mp_int *c);
244 mp_err s_mp_invmod_even_m(const mp_int *a, const mp_int *m, mp_int *c);
298 mp_err MPI_ASM_DECL s_mpv_div_2dx1d(mp_digit Nhi, mp_digit Nlo,
311 mp_err s_mp_mul_mont(const mp_int *a, const mp_int *b, mp_int *c,
313 mp_err s_mp_redc(mp_int *T, mp_mont_modulus *mmm);