1656c5bc7SDima Dorfman 2656c5bc7SDima Dorfman #ifndef _MP_H_ 3656c5bc7SDima Dorfman #define _MP_H_ 4656c5bc7SDima Dorfman 5cb9c19ffSMark Murray #ifndef HEADER_BN_H_ 6656c5bc7SDima Dorfman #include <openssl/bn.h> 7cb9c19ffSMark Murray #endif 8656c5bc7SDima Dorfman 9656c5bc7SDima Dorfman typedef struct _mint { 10656c5bc7SDima Dorfman BIGNUM *bn; 11656c5bc7SDima Dorfman } MINT; 12656c5bc7SDima Dorfman 13*b3aaa0ccSEd Schouten void mp_gcd(const MINT *, const MINT *, MINT *); 14*b3aaa0ccSEd Schouten MINT *mp_itom(short); 15*b3aaa0ccSEd Schouten void mp_madd(const MINT *, const MINT *, MINT *); 16*b3aaa0ccSEd Schouten int mp_mcmp(const MINT *, const MINT *); 17*b3aaa0ccSEd Schouten void mp_mdiv(const MINT *, const MINT *, MINT *, MINT *); 18*b3aaa0ccSEd Schouten void mp_mfree(MINT *); 19*b3aaa0ccSEd Schouten void mp_min(MINT *); 20*b3aaa0ccSEd Schouten void mp_mout(const MINT *); 21*b3aaa0ccSEd Schouten void mp_move(const MINT *, MINT *); 22*b3aaa0ccSEd Schouten void mp_msqrt(const MINT *, MINT *, MINT *); 23*b3aaa0ccSEd Schouten void mp_msub(const MINT *, const MINT *, MINT *); 24*b3aaa0ccSEd Schouten char *mp_mtox(const MINT *); 25*b3aaa0ccSEd Schouten void mp_mult(const MINT *, const MINT *, MINT *); 26*b3aaa0ccSEd Schouten void mp_pow(const MINT *, const MINT *, const MINT *, MINT *); 27*b3aaa0ccSEd Schouten void mp_rpow(const MINT *, short, MINT *); 28*b3aaa0ccSEd Schouten void mp_sdiv(const MINT *, short, MINT *, short *); 29*b3aaa0ccSEd Schouten MINT *mp_xtom(const char *); 30656c5bc7SDima Dorfman 31656c5bc7SDima Dorfman #endif /* !_MP_H_ */ 32