diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-10-03 09:12:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-10-03 09:12:09 (GMT) |
commit | f6c7239618279d83b8cafba5f7b73c6f6467dbe2 (patch) | |
tree | 2ef1244b35754811a4c2d740c2c4a5cd0f344708 /libtommath/tommath.h | |
parent | 37e24db5b3a92113dcdc2832ae23804ee3709b4d (diff) | |
parent | 7f1045d5a68cec549da5cfd2270d089f2089a893 (diff) | |
download | tcl-novem.zip tcl-novem.tar.gz tcl-novem.tar.bz2 |
Merge trunknovem
Diffstat (limited to 'libtommath/tommath.h')
-rw-r--r-- | libtommath/tommath.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libtommath/tommath.h b/libtommath/tommath.h index e067cb4..50a3a81 100644 --- a/libtommath/tommath.h +++ b/libtommath/tommath.h @@ -252,7 +252,7 @@ void mp_clamp(mp_int *a); int mp_import(mp_int *rop, size_t count, int order, size_t size, int endian, size_t nails, const void *op); /* export binary data */ -int mp_export(void *rop, size_t *countp, int order, size_t size, int endian, size_t nails, mp_int *op); +int mp_export(void *rop, size_t *countp, int order, size_t size, int endian, size_t nails, const mp_int *op); /* ---> digit manipulation <--- */ @@ -410,7 +410,7 @@ int mp_reduce_setup(mp_int *a, const mp_int *b); * Assumes that 0 < a <= b*b, note if 0 > a > -(b*b) then you can merely * compute the reduction as -1 * mp_reduce(mp_abs(a)) [pseudo code]. */ -int mp_reduce(mp_int *a, const mp_int *b, mp_int *c); +int mp_reduce(mp_int *a, const mp_int *b, const mp_int *c); /* setups the montgomery reduction */ int mp_montgomery_setup(const mp_int *a, mp_digit *mp); @@ -448,7 +448,7 @@ int mp_reduce_is_2k_l(const mp_int *a); int mp_reduce_2k_setup_l(const mp_int *a, mp_int *d); /* reduces a modulo b where b is of the form 2**p - k [0 <= a] */ -int mp_reduce_2k_l(mp_int *a, const mp_int *n, mp_int *d); +int mp_reduce_2k_l(mp_int *a, const mp_int *n, const mp_int *d); /* d = a**b (mod c) */ int mp_exptmod(const mp_int *a, const mp_int *b, const mp_int *c, mp_int *d); |