diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-12-13 21:48:15 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-12-13 21:48:15 (GMT) |
commit | de326e5c5ed447c99c7be6991f76cc9d5e774698 (patch) | |
tree | 609f9b5951391fee802aeb9989ec4971ac104a99 /libtommath | |
parent | 9eeefad066a16a6e9a3407178f7629a8cd4c0e61 (diff) | |
download | tcl-de326e5c5ed447c99c7be6991f76cc9d5e774698.zip tcl-de326e5c5ed447c99c7be6991f76cc9d5e774698.tar.gz tcl-de326e5c5ed447c99c7be6991f76cc9d5e774698.tar.bz2 |
Don't export mp_sqr() directly from libtcl
Diffstat (limited to 'libtommath')
-rw-r--r-- | libtommath/tommath_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libtommath/tommath_private.h b/libtommath/tommath_private.h index 60c8838..93724a4 100644 --- a/libtommath/tommath_private.h +++ b/libtommath/tommath_private.h @@ -249,6 +249,11 @@ MP_DEPRECATED(s_mp_toom_mul) mp_err mp_toom_mul(const mp_int *a, const mp_int *b MP_DEPRECATED(s_mp_toom_sqr) mp_err mp_toom_sqr(const mp_int *a, mp_int *b); MP_DEPRECATED(s_mp_reverse) void bn_reverse(unsigned char *s, int len); +#ifndef TCL_WITH_EXTERNAL_TOMMATH +#undef mp_sqr +#define mp_sqr TclBN_mp_sqr +#endif + #undef mp_sqr #define mp_sqr TclBN_mp_sqr |