Closed
Description
~/build/libtommath $ grep expt tommath.h
int mp_2expt(mp_int *a, int b);
int mp_expt_d(const mp_int *a, mp_digit b, mp_int *c);
int mp_expt_d_ex(const mp_int *a, mp_digit b, mp_int *c, int fast);
int mp_exptmod(const mp_int *G, const mp_int *X, const mp_int *P, mp_int *Y);
I am missing
int mp_expt(const mp_int *a, const mp_int *b, mp_int *c);
I know that unless a is -1, 0 or 1, a power that does not fit in a mp_digit
will definitely go out-of-memory. But as a user of this library it would still be nice to have libtommath take care of handling the three bases where it does work, and also to provide a nice uniform interface.
Metadata
Metadata
Assignees
Labels
No labels