head 1.26; access; symbols pkgsrc-2023Q4:1.26.0.2 pkgsrc-2023Q4-base:1.26 pkgsrc-2023Q3:1.25.0.26 pkgsrc-2023Q3-base:1.25 pkgsrc-2023Q2:1.25.0.24 pkgsrc-2023Q2-base:1.25 pkgsrc-2023Q1:1.25.0.22 pkgsrc-2023Q1-base:1.25 pkgsrc-2022Q4:1.25.0.20 pkgsrc-2022Q4-base:1.25 pkgsrc-2022Q3:1.25.0.18 pkgsrc-2022Q3-base:1.25 pkgsrc-2022Q2:1.25.0.16 pkgsrc-2022Q2-base:1.25 pkgsrc-2022Q1:1.25.0.14 pkgsrc-2022Q1-base:1.25 pkgsrc-2021Q4:1.25.0.12 pkgsrc-2021Q4-base:1.25 pkgsrc-2021Q3:1.25.0.10 pkgsrc-2021Q3-base:1.25 pkgsrc-2021Q2:1.25.0.8 pkgsrc-2021Q2-base:1.25 pkgsrc-2021Q1:1.25.0.6 pkgsrc-2021Q1-base:1.25 pkgsrc-2020Q4:1.25.0.4 pkgsrc-2020Q4-base:1.25 pkgsrc-2020Q3:1.25.0.2 pkgsrc-2020Q3-base:1.25 pkgsrc-2020Q2:1.24.0.4 pkgsrc-2020Q2-base:1.24 pkgsrc-2020Q1:1.24.0.2 pkgsrc-2020Q1-base:1.24 pkgsrc-2019Q4:1.23.0.6 pkgsrc-2019Q4-base:1.23 pkgsrc-2019Q3:1.23.0.2 pkgsrc-2019Q3-base:1.23 pkgsrc-2019Q2:1.22.0.14 pkgsrc-2019Q2-base:1.22 pkgsrc-2019Q1:1.22.0.12 pkgsrc-2019Q1-base:1.22 pkgsrc-2018Q4:1.22.0.10 pkgsrc-2018Q4-base:1.22 pkgsrc-2018Q3:1.22.0.8 pkgsrc-2018Q3-base:1.22 pkgsrc-2018Q2:1.22.0.6 pkgsrc-2018Q2-base:1.22 pkgsrc-2018Q1:1.22.0.4 pkgsrc-2018Q1-base:1.22 pkgsrc-2017Q4:1.22.0.2 pkgsrc-2017Q4-base:1.22 pkgsrc-2017Q3:1.21.0.8 pkgsrc-2017Q3-base:1.21 pkgsrc-2017Q2:1.21.0.4 pkgsrc-2017Q2-base:1.21 pkgsrc-2017Q1:1.21.0.2 pkgsrc-2017Q1-base:1.21 pkgsrc-2016Q4:1.20.0.2 pkgsrc-2016Q4-base:1.20 pkgsrc-2016Q3:1.18.0.16 pkgsrc-2016Q3-base:1.18 pkgsrc-2016Q2:1.18.0.14 pkgsrc-2016Q2-base:1.18 pkgsrc-2016Q1:1.18.0.12 pkgsrc-2016Q1-base:1.18 pkgsrc-2015Q4:1.18.0.10 pkgsrc-2015Q4-base:1.18 pkgsrc-2015Q3:1.18.0.8 pkgsrc-2015Q3-base:1.18 pkgsrc-2015Q2:1.18.0.6 pkgsrc-2015Q2-base:1.18 pkgsrc-2015Q1:1.18.0.4 pkgsrc-2015Q1-base:1.18 pkgsrc-2014Q4:1.18.0.2 pkgsrc-2014Q4-base:1.18 pkgsrc-2014Q3:1.16.0.18 pkgsrc-2014Q3-base:1.16 pkgsrc-2014Q2:1.16.0.16 pkgsrc-2014Q2-base:1.16 pkgsrc-2014Q1:1.16.0.14 pkgsrc-2014Q1-base:1.16 pkgsrc-2013Q4:1.16.0.12 pkgsrc-2013Q4-base:1.16 pkgsrc-2013Q3:1.16.0.10 pkgsrc-2013Q3-base:1.16 pkgsrc-2013Q2:1.16.0.8 pkgsrc-2013Q2-base:1.16 pkgsrc-2013Q1:1.16.0.6 pkgsrc-2013Q1-base:1.16 pkgsrc-2012Q4:1.16.0.4 pkgsrc-2012Q4-base:1.16 pkgsrc-2012Q3:1.16.0.2 pkgsrc-2012Q3-base:1.16 pkgsrc-2012Q2:1.15.0.10 pkgsrc-2012Q2-base:1.15 pkgsrc-2012Q1:1.15.0.8 pkgsrc-2012Q1-base:1.15 pkgsrc-2011Q4:1.15.0.6 pkgsrc-2011Q4-base:1.15 pkgsrc-2011Q3:1.15.0.4 pkgsrc-2011Q3-base:1.15 pkgsrc-2011Q2:1.15.0.2 pkgsrc-2011Q2-base:1.15 pkgsrc-2011Q1:1.14.0.2 pkgsrc-2011Q1-base:1.14 pkgsrc-2010Q4:1.13.0.2 pkgsrc-2010Q4-base:1.13 pkgsrc-2010Q3:1.12.0.26 pkgsrc-2010Q3-base:1.12 pkgsrc-2010Q2:1.12.0.24 pkgsrc-2010Q2-base:1.12 pkgsrc-2010Q1:1.12.0.22 pkgsrc-2010Q1-base:1.12 pkgsrc-2009Q4:1.12.0.20 pkgsrc-2009Q4-base:1.12 pkgsrc-2009Q3:1.12.0.18 pkgsrc-2009Q3-base:1.12 pkgsrc-2009Q2:1.12.0.16 pkgsrc-2009Q2-base:1.12 pkgsrc-2009Q1:1.12.0.14 pkgsrc-2009Q1-base:1.12 pkgsrc-2008Q4:1.12.0.12 pkgsrc-2008Q4-base:1.12 pkgsrc-2008Q3:1.12.0.10 pkgsrc-2008Q3-base:1.12 cube-native-xorg:1.12.0.8 cube-native-xorg-base:1.12 pkgsrc-2008Q2:1.12.0.6 pkgsrc-2008Q2-base:1.12 cwrapper:1.12.0.4 pkgsrc-2008Q1:1.12.0.2 pkgsrc-2008Q1-base:1.12 pkgsrc-2007Q4:1.10.0.2 pkgsrc-2007Q4-base:1.10 pkgsrc-2007Q3:1.9.0.10 pkgsrc-2007Q3-base:1.9 pkgsrc-2007Q2:1.9.0.8 pkgsrc-2007Q2-base:1.9 pkgsrc-2007Q1:1.9.0.6 pkgsrc-2007Q1-base:1.9 pkgsrc-2006Q4:1.9.0.4 pkgsrc-2006Q4-base:1.9 pkgsrc-2006Q3:1.9.0.2 pkgsrc-2006Q3-base:1.9 pkgsrc-2006Q2:1.6.0.2 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.5.0.2 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.4.0.6 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.4 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.2 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.3.0.4 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.2 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.26 date 2023.11.06.14.00.23; author wiz; state Exp; branches; next 1.25; commitid PzJrJisUJEnVtyLE; 1.25 date 2020.09.14.18.23.41; author joerg; state Exp; branches; next 1.24; commitid vegfcjUNJBiTP2oC; 1.24 date 2020.01.24.10.08.20; author wiz; state Exp; branches; next 1.23; commitid li49P5iHYJjkCVTB; 1.23 date 2019.07.09.11.27.16; author nia; state Exp; branches; next 1.22; commitid o6cfI3yXMH51smuB; 1.22 date 2017.09.26.14.34.23; author mspo; state Exp; branches; next 1.21; commitid pd9Dm1kB46tqpI8A; 1.21 date 2017.02.05.12.28.14; author bsiegert; state Exp; branches; next 1.20; commitid 5AofsegNzKftcLEz; 1.20 date 2016.10.04.09.34.01; author wiz; state Exp; branches; next 1.19; commitid i1czSKNGgCc9eOoz; 1.19 date 2016.10.04.09.29.46; author wiz; state Exp; branches; next 1.18; commitid dW4TeyysIczHcOoz; 1.18 date 2014.12.27.00.00.26; author mef; state Exp; branches; next 1.17; commitid oEDz5FFGycrOQB3y; 1.17 date 2014.10.09.14.06.41; author wiz; state Exp; branches; next 1.16; commitid fBDATFVmQ3454xTx; 1.16 date 2012.09.11.23.04.23; author asau; state Exp; branches; next 1.15; 1.15 date 2011.04.04.10.48.32; author drochner; state Exp; branches; next 1.14; 1.14 date 2011.03.10.09.52.24; author drochner; state Exp; branches; next 1.13; 1.13 date 2010.11.24.01.09.48; author agc; state Exp; branches; next 1.12; 1.12 date 2008.03.04.18.12.59; author jlam; state Exp; branches; next 1.11; 1.11 date 2008.02.28.11.58.48; author rillig; state Exp; branches; next 1.10; 1.10 date 2007.12.02.22.30.35; author rillig; state Exp; branches; next 1.9; 1.9 date 2006.09.09.09.35.10; author obache; state Exp; branches; next 1.8; 1.8 date 2006.09.09.09.01.14; author obache; state Exp; branches; next 1.7; 1.7 date 2006.09.09.02.43.10; author obache; state Exp; branches; next 1.6; 1.6 date 2006.06.15.13.31.29; author wiz; state Exp; branches; next 1.5; 1.5 date 2006.02.05.23.10.02; author joerg; state Exp; branches; next 1.4; 1.4 date 2005.04.11.21.46.29; author tv; state Exp; branches; next 1.3; 1.3 date 2004.12.03.15.15.03; author wiz; state Exp; branches; next 1.2; 1.2 date 2004.07.30.13.57.25; author minskim; state Exp; branches; next 1.1; 1.1 date 2004.07.30.13.49.40; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.07.30.13.49.40; author wiz; state Exp; branches; next ; desc @@ 1.26 log @ltm: update to 1.2.1. Sep 04th, 2023 v1.2.1 -- Bugfix release because of potential integer overflow c.f. PR #546 resp. CVE-2023-36328 @ text @# $NetBSD: Makefile,v 1.25 2020/09/14 18:23:41 joerg Exp $ DISTNAME= ltm-1.2.1 CATEGORIES= math MASTER_SITES= ${MASTER_SITE_GITHUB:=libtom/} GITHUB_PROJECT= libtommath GITHUB_RELEASE= v${PKGVERSION_NOREV} EXTRACT_SUFX= .tar.xz MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://www.libtom.net/LibTomMath/ COMMENT= Number theoretic multiple-precision integer library LICENSE= unlicense WRKSRC= ${WRKDIR}/libtommath-${PKGVERSION_NOREV} USE_LIBTOOL= yes MAKE_FILE= makefile.shared BUILD_TARGET= default USE_TOOLS+= gmake PKGCONFIG_OVERRIDE+= libtommath.pc.in INSTALLATION_DIRS= share/doc/ltm do-test: (cd ${WRKSRC}; \ gmake -f makefile mtest/mtest test; \ ./mtest/mtest | ./test) post-install: ${INSTALL_DATA} ${WRKSRC}/doc/bn.pdf ${DESTDIR}${PREFIX}/share/doc/ltm .include "../../mk/bsd.pkg.mk" @ 1.25 log @Assume non-VAX uses IEEE754 floats. While it doesn't make a difference for GCC here, clang doesn't define the same macros by default. Bump revision. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.24 2020/01/24 10:08:20 wiz Exp $ d3 1 a3 2 DISTNAME= ltm-1.2.0 PKGREVISION= 1 @ 1.24 log @ltm: update to 1.2.0. Partially based on diff sent by Kai-Uwe Eckhardt in private mail. v1.2.0 -- A huge refactoring of the library happened - renaming, deprecating and replacing existing functions by improved API's. All deprecated functions, macros and symbols are only marked as such so this version is still API and ABI compatible to v1.x. -- Daniel Mendler was pushing for those changes and contributing a load of patches, refactorings, code reviews and whatnotelse. -- Christoph Zurnieden re-worked internals of the library, improved the performance, did code reviews and wrote documentation. -- Francois Perrad did some refactoring and took again care of linting the sources and provided all fixes. -- Jan Nijtmans, Karel Miko and Joachim Breitner contributed various patches. -- Private symbols can now be hidden for the shared library builds, disabled by default. -- All API's follow a single code style, are prefixed the same etc. -- Unified, safer and improved API's -- Less magic numbers - return values (where appropriate) and most flags are now enums, this was implemented in a backwards compatible way where return values were int. -- API's with return values are now by default marked as "warn on unsused result", this can be disabled if required (which will most likely hide bugs), c.f. MP_WUR in tommath.h -- Provide a whole set of setters&getters for different primitive types (long, uint32_t, etc.) -- All those primitive setters are now optimized. -- It's possible to automatically tune the cutoff values for Karatsuba&Toom-Cook -- The custom allocators which were formerly known as XMALLOC(), XFREE() etc. are now available as MP_MALLOC(), MP_REALLOC(), MP_CALLOC() and MP_FREE(). MP_REALLOC() and MP_FREE() now also provide the allocated size to ease the usage of simple allocators without tracking. -- Building is now also possible with MSVC 2015, 2017 and 2019 (use makefile.msvc) -- Added mp_decr() and mp_incr() -- Added mp_log_u32() -- Improved prime-checking -- Improved Toom-Cook multiplication -- Removed the LTM book (`make docs` now builds the user manual) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2019/07/09 11:27:16 nia Exp $ d4 1 @ 1.23 log @ltm: Update to 1.1.0 Jan 28th, 2019 v1.1.0 -- Christoph Zurnieden contributed FIPS 186.4 compliant prime-checking (PR #113), several other fixes and a load of documentation -- Daniel Mendler provided two's-complement functions (PR #124) and mp_{set,get}_double() (PR #123) -- Francois Perrad took care of linting the sources, provided all fixes and a astylerc to auto-format the sources. -- A bunch of patches by Kevin B Kenny have been back-ported from TCL -- Jan Nijtmans provided the patches to `const`ify all API function arguments (also from TCL) -- mp_rand() has now several native random provider implementations and doesn't rely on `rand()` anymore -- Karel Miko provided fixes when building for MS Windows and re-worked the makefile generating process -- The entire environment and build logic has been extended and improved regarding auto-detection of platforms, libtool and a lot more -- Prevent some potential BOF cases -- Improved/fixed mp_lshd() and mp_invmod() -- A load more bugs were fixed by various contributors @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2017/09/26 14:34:23 mspo Exp $ d3 1 a3 1 DISTNAME= ltm-1.1.0 d11 1 a11 1 HOMEPAGE= http://libtom.net/ d13 1 a13 1 LICENSE= public-domain a17 1 MAKE_ENV+= LIBPATH=${PREFIX}/lib d21 1 a21 1 INSTALLATION_DIRS= include lib share/doc/ltm d23 8 a30 6 do-install: ${INSTALL_DATA} ${WRKSRC}/tommath.h ${DESTDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/tommath_class.h ${DESTDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/tommath_superclass.h ${DESTDIR}${PREFIX}/include ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libtommath.la \ ${DESTDIR}${PREFIX}/lib a31 2 ${INSTALL_DATA} ${WRKSRC}/doc/poster.pdf ${DESTDIR}${PREFIX}/share/doc/ltm ${INSTALL_DATA} ${WRKSRC}/doc/tommath.pdf ${DESTDIR}${PREFIX}/share/doc/ltm @ 1.22 log @Update ltm (libtommath) to 1.0.1 to get MP_GEN_RANDOM_MAX etc v1.0.1 -- Dmitry Kovalenko provided fixes to mp_add_d() and mp_init_copy() -- Matt Johnston contributed some improvements to mp_div_2d(), mp_exptmod_fast(), mp_mod() and mp_mulmod() -- Julien Nabet provided a fix to the error handling in mp_init_multi() -- Ben Gardner provided a fix regarding usage of reserved keywords -- Fixed mp_rand() to fill the correct number of bits -- Fixed mp_invmod() -- Use the same 64-bit detection code as in libtomcrypt -- Correct usage of DESTDIR, PREFIX, etc. when installing the library -- Francois Perrad updated all the perl scripts to an actual perl version @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2017/02/05 12:28:14 bsiegert Exp $ d3 1 a3 2 DISTNAME= ltm-1.0.1 PKGREVISION= 1 d15 1 a15 1 WRKSRC= ${WRKDIR}/libtommath-1.0.1 @ 1.21 log @Set LIBPATH during build, bump pkgrev. Otherwise, the library refers to a nonexistent lib in /usr/lib on Darwin. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2016/10/04 09:34:01 wiz Exp $ d3 1 a3 1 DISTNAME= ltm-1.0 d16 1 a16 1 WRKSRC= ${WRKDIR}/libtommath-1.0 d31 3 a33 3 ${INSTALL_DATA} ${WRKSRC}/bn.pdf ${DESTDIR}${PREFIX}/share/doc/ltm ${INSTALL_DATA} ${WRKSRC}/poster.pdf ${DESTDIR}${PREFIX}/share/doc/ltm ${INSTALL_DATA} ${WRKSRC}/tommath.pdf ${DESTDIR}${PREFIX}/share/doc/ltm @ 1.20 log @Use INSTALLATION_DIRS. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2016/10/04 09:29:46 wiz Exp $ d4 1 d19 1 @ 1.19 log @Updated ltm to 1.0. Feb 5th, 2016 v1.0 -- Bump to 1.0 -- Dirkjan Bussink provided a faster version of mp_expt_d() -- Moritz Lenz contributed a fix to mp_mod() and provided mp_get_long() and mp_set_long() -- Fixed bugs in mp_read_radix(), mp_radix_size Thanks to shameister, Gerhard R, -- Christopher Brown provided mp_export() and mp_import() -- Improvements in the code of mp_init_copy() Thanks to ramkumarkoppu, -- lomereiter provided mp_balance_mul() -- Alexander Boström from the heimdal project contributed patches to mp_prime_next_prime() and mp_invmod() and added a mp_isneg() macro -- Fix build issues for Linux x32 ABI -- Added mp_get_long_long() and mp_set_long_long() -- Carlin provided a patch to use arc4random() instead of rand() on platforms where it is supported -- Karel Miko provided mp_sqrtmod_prime() @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2014/12/27 00:00:26 mef Exp $ d21 1 a21 1 AUTO_MKDIRS= yes @ 1.18 log @MASTER_SITES and HOMEPAGE moved from libtom.org to libtom.net @ text @d1 1 a1 2 # $NetBSD: Makefile,v 1.17 2014/10/09 14:06:41 wiz Exp $ # d3 1 a3 2 DISTNAME= ltm-0.42.0 PKGREVISION= 1 d5 4 a8 2 MASTER_SITES= http://libtom.net/files/ EXTRACT_SUFX= .tar.bz2 d15 1 a15 1 WRKSRC= ${WRKDIR}/libtommath-0.42.0 @ 1.17 log @Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2012/09/11 23:04:23 asau Exp $ d7 1 a7 1 MASTER_SITES= http://libtom.org/files/ d11 1 a11 1 HOMEPAGE= http://libtom.org/ @ 1.16 log @"user-destdir" is default these days @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2011/04/04 10:48:32 drochner Exp $ a14 2 PKG_INSTALLATION_TYPES= overwrite pkgviews @ 1.15 log @fix HOMEPAGE, from Kamel Derouiche per PR pkg/44823 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2011/03/10 09:52:24 drochner Exp $ a15 1 PKG_DESTDIR_SUPPORT= user-destdir @ 1.14 log @build shared lib, bump PKGREV @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2010/11/24 01:09:48 agc Exp $ d11 1 a11 1 HOMEPAGE= http://math.libtomcrypt.com/ @ 1.13 log @Update Libtommath to version 0.42.0 pkgsrc changes: + Add license + Update master site Changes since last pkgsrc version (0.39): July 23rd, 2010 v0.42.0 -- Fix for mp_prime_next_prime() bug when checking generated prime -- allow mp_shrink to shrink initialized, but empty MPI's -- Added project and solution files for Visual Studio 2005 and Visual Studio 2008. March 10th, 2007 v0.41 -- Wolfgang Ehrhardt suggested a quick fix to mp_div_d() which makes the detection of powers of two quicker. -- [CRI] Added libtommath.dsp for Visual C++ users. December 24th, 2006 v0.40 -- Updated makefile to properly support LIBNAME -- Fixed bug in fast_s_mp_mul_high_digs() which overflowed (line 83), thanks Valgrind! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2008/03/04 18:12:59 jlam Exp $ d5 1 d19 2 a20 1 MAKE_FILE= makefile d30 2 a31 1 ${INSTALL_LIB} ${WRKSRC}/libtommath.a ${DESTDIR}${PREFIX}/lib @ 1.12 log @Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2008/02/28 11:58:48 rillig Exp $ d4 1 a4 1 DISTNAME= ltm-0.39 d6 1 a6 1 MASTER_SITES= http://math.libtomcrypt.com/files/ d12 1 d17 1 a17 1 WRKSRC= ${WRKDIR}/libtommath-0.39 @ 1.11 log @Replaced the deprecated INSTALLATION_DIRS_FROM_PLIST with AUTO_MKDIRS, to shut up the pkglint warnings. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2007/12/02 22:30:35 rillig Exp $ d14 1 d24 7 a30 7 ${INSTALL_DATA} ${WRKSRC}/tommath.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/tommath_class.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/tommath_superclass.h ${PREFIX}/include ${INSTALL_LIB} ${WRKSRC}/libtommath.a ${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/bn.pdf ${PREFIX}/share/doc/ltm ${INSTALL_DATA} ${WRKSRC}/poster.pdf ${PREFIX}/share/doc/ltm ${INSTALL_DATA} ${WRKSRC}/tommath.pdf ${PREFIX}/share/doc/ltm @ 1.10 log @Needs include/ pre-created. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2006/09/09 09:35:10 obache Exp $ d20 1 a20 1 INSTALLATION_DIRS_FROM_PLIST=yes @ 1.9 log @Update to 0.39. April 4th, 2006 v0.39 -- Jim Wigginton pointed out my Montgomery examples in figures 6.4 and 6.6 were off by one, k should be 9 not 8 -- Bruce Guenter suggested I use --tag=CC for libtool builds where the compiler may think it's C++. -- "mm" from sci.crypt pointed out that my mp_gcd was sub-optimal (I also updated and corrected the book) -- updated some of the @@@@ tags in tommath.src to reflect source changes. -- updated email and url info in all source files Jan 26th, 2006 v0.38 -- broken makefile.shared fixed -- removed some carry stores that were not required [updated text] November 18th, 2005 v0.37 -- [Don Porter] reported on a TCL list [HEY SEND ME BUGREPORTS ALREADY!!!] that mp_add_d() would compute -0 with some inputs. Fixed. -- [rinick@@gmail.com] reported the makefile.bcc was messed up. Fixed. -- [Kevin Kenny] reported some issues with mp_toradix_n(). Now it doesn't require a min of 3 chars of output. -- Made the make command renamable. Wee August 1st, 2005 v0.36 -- LTM_PRIME_2MSB_ON was fixed and the "OFF" flag was removed. -- [Peter LaDow] found a typo in the XREALLOC macro -- [Peter LaDow] pointed out that mp_read_(un)signed_bin should have "const" on the input -- Ported LTC patch to fix the prime_random_ex() function to get the bitsize correct [and the maskOR flags] -- Kevin Kenny pointed out a stray // -- David Hulton pointed out a typo in the textbook [mp_montgomery_setup() pseudo-code] -- Neal Hamilton (Elliptic Semiconductor) pointed out that my Karatsuba notation was backwards and that I could use unsigned operations in the routine. -- Paul Schmidt pointed out a linking error in mp_exptmod() when BN_S_MP_EXPTMOD_C is undefined (and another for read_radix) -- Updated makefiles to be way more flexible March 12th, 2005 v0.35 -- Stupid XOR function missing line again... oops. -- Fixed bug in invmod not handling negative inputs correctly [Wolfgang Ehrhardt] -- Made exteuclid always give positive u3 output...[ Wolfgang Ehrhardt ] -- [Wolfgang Ehrhardt] Suggested a fix for mp_reduce() which avoided underruns. ;-) -- mp_rand() would emit one too many digits and it was possible to get a 0 out of it ... oops -- Added montgomery to the testing to make sure it handles 1..10 digit moduli correctly -- Fixed bug in comba that would lead to possible erroneous outputs when "pa < digs" -- Fixed bug in mp_toradix_size for "0" [Kevin Kenny] -- Updated chapters 1-5 of the textbook ;-) It now talks about the new comba code! February 12th, 2005 v0.34 -- Fixed two more small errors in mp_prime_random_ex() -- Fixed overflow in mp_mul_d() [Kevin Kenny] -- Added mp_to_(un)signed_bin_n() functions which do bounds checking for ya [and report the size] -- Added "large" diminished radix support. Speeds up things like DSA where the moduli is of the form 2^k - P for some P < 2^(k/2) or so Actually is faster than Montgomery on my AMD64 (and probably much faster on a P4) -- Updated the manual a bit -- Ok so I haven't done the textbook work yet... My current freelance gig has landed me in France till the end of Feb/05. Once I get back I'll have tons of free time and I plan to go to town on the book. As of this release the API will freeze. At least until the book catches up with all the changes. I welcome bug reports but new algorithms will have to wait. December 23rd, 2004 v0.33 -- Fixed "small" variant for mp_div() which would munge with negative dividends... -- Fixed bug in mp_prime_random_ex() which would set the most significant byte to zero when no special flags were set -- Fixed overflow [minor] bug in fast_s_mp_sqr() -- Made the makefiles easier to configure the group/user that ltm will install as -- Fixed "final carry" bug in comba multipliers. (Volkan Ceylan) -- Matt Johnston pointed out a missing semi-colon in mp_exptmod October 29th, 2004 v0.32 -- Added "makefile.shared" for shared object support -- Added more to the build options/configs in the manual -- Started the Depends framework, wrote dep.pl to scan deps and produce "callgraph.txt" ;-) -- Wrote SC_RSA_1 which will enable close to the minimum required to perform RSA on 32-bit [or 64-bit] platforms with LibTomCrypt -- Merged in the small/slower mp_div replacement. You can now toggle which you want to use as your mp_div() at build time. Saves roughly 8KB or so. -- Renamed a few files and changed some comments to make depends system work better. (No changes to function names) -- Merged in new Combas that perform 2 reads per inner loop instead of the older 3reads/2writes per inner loop of the old code. Really though if you want speed learn to use TomsFastMath ;-) August 9th, 2004 v0.31 -- "profiled" builds now :-) new timings for Intel Northwoods -- Added "pretty" build target -- Update mp_init() to actually assign 0's instead of relying on calloc() -- "Wolfgang Ehrhardt" found a bug in mp_mul() where if you multiply a negative by zero you get negative zero as the result. Oops. -- J Harper from PeerSec let me toy with his AMD64 and I got 60-bit digits working properly [this also means that I fixed a bug where if sizeof(int) < sizeof(mp_digit) it would bug] @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2006/09/09 09:01:14 obache Exp $ d20 1 a20 1 INSTALLATION_DIRS= share/doc/ltm @ 1.8 log @Update MASTER_SITES and HOMEPAGE. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2006/09/09 02:43:10 obache Exp $ d4 1 a4 2 DISTNAME= ltm-0.30 PKGREVISION= 1 d7 1 a7 1 EXTRACT_SUFX= .zip d15 1 a15 1 WRKSRC= ${WRKDIR}/libtommath-0.30 d18 1 d20 1 a20 1 INSTALLATION_DIRS= include lib d24 2 a26 1 ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ltm @ 1.7 log @Rename variable MAKEFILE to MAKE_FILE. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2006/06/15 13:31:29 wiz Exp $ d7 1 a7 1 MASTER_SITES= http://math.libtomcrypt.org/files/ d11 1 a11 1 HOMEPAGE= http://math.libtomcrypt.org/ @ 1.6 log @Drop maintainership, I don't use them any longer. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2006/02/05 23:10:02 joerg Exp $ d17 1 a17 1 MAKEFILE= makefile @ 1.5 log @Recursive revision bump / recommended bump for gettext ABI change. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2005/04/11 21:46:29 tv Exp $ d10 1 a10 1 MAINTAINER= wiz@@NetBSD.org @ 1.4 log @Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2004/12/03 15:15:03 wiz Exp $ d5 1 @ 1.3 log @Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs. Suggested by Roland Illig, ok'd by various. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2004/07/30 13:57:25 minskim Exp $ a15 1 USE_BUILDLINK3= yes @ 1.2 log @Enable pkgviews installation. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2004/07/30 13:49:40 wiz Exp $ d18 1 a18 1 ALL_TARGET= default @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD$ d13 2 d20 2 @ 1.1.1.1 log @Initial import of ltm-0.30: LibTomMath provides highly optimized and portable routines for a vast majority of integer based number theoretic applications (including public key cryptography). LibTomMath is not a cryptographic toolkit itself but it can be used to write one [Used in LibTomCrypt for RSA, DH and ECC public key routines]. @ text @@