s4:heimdal: import lorikeet-heimdal-202201172009 (commit 5a0b45cd723628b3690ea848548b...
[samba.git] / source4 / heimdal / lib / hcrypto / libtommath / changes.txt
1 XXX XXth, 2019
2 v1.2.0
3        -- A huge refactoring of the library happened - renaming,
4           deprecating and replacing existing functions by improved API's.
5
6           All deprecated functions, macros and symbols are only marked as such
7           so this version is still API and ABI compatible to v1.x.
8
9        -- Daniel Mendler was pushing for those changes and contributing a load of patches,
10           refactorings, code reviews and whatnotelse.
11        -- Christoph Zurnieden re-worked internals of the library, improved the performance,
12           did code reviews and wrote documentation.
13        -- Francois Perrad did some refactoring and took again care of linting the sources and
14           provided all fixes.
15        -- Jan Nijtmans, Karel Miko and Joachim Breitner contributed various patches.
16
17        -- Private symbols can now be hidden for the shared library builds, disabled by default.
18        -- All API's follow a single code style, are prefixed the same etc.
19        -- Unified, safer and improved API's
20        -- Less magic numbers - return values (where appropriate) and most flags are now enums,
21           this was implemented in a backwards compatible way where return values were int.
22        -- API's with return values are now by default marked as "warn on unsused result", this
23           can be disabled if required (which will most likely hide bugs), c.f. MP_WUR in tommath.h
24        -- Provide a whole set of setters&getters for different primitive types (long, uint32_t, etc.)
25        -- All those primitive setters are now optimized.
26        -- It's possible to automatically tune the cutoff values for Karatsuba&Toom-Cook
27        -- The custom allocators which were formerly known as XMALLOC(), XFREE() etc. are now available
28           as MP_MALLOC(), MP_REALLOC(), MP_CALLOC() and MP_FREE(). MP_REALLOC() and MP_FREE() now also
29           provide the allocated size to ease the usage of simple allocators without tracking.
30        -- Building is now also possible with MSVC 2015, 2017 and 2019 (use makefile.msvc)
31        -- Added mp_decr() and mp_incr()
32        -- Added mp_log_u32()
33        -- Improved prime-checking
34        -- Improved Toom-Cook multiplication
35        -- Removed the LTM book (`make docs` now builds the user manual)
36
37
38 Jan 28th, 2019
39 v1.1.0
40        -- Christoph Zurnieden contributed FIPS 186.4 compliant
41           prime-checking (PR #113), several other fixes and a load of documentation
42        -- Daniel Mendler provided two's-complement functions (PR #124)
43           and mp_{set,get}_double() (PR #123)
44        -- Francois Perrad took care of linting the sources, provided all fixes and
45           a astylerc to auto-format the sources.
46        -- A bunch of patches by Kevin B Kenny have been back-ported from TCL
47        -- Jan Nijtmans provided the patches to `const`ify all API
48           function arguments (also from TCL)
49        -- mp_rand() has now several native random provider implementations
50           and doesn't rely on `rand()` anymore
51        -- Karel Miko provided fixes when building for MS Windows
52           and re-worked the makefile generating process
53        -- The entire environment and build logic has been extended and improved
54           regarding auto-detection of platforms, libtool and a lot more
55        -- Prevent some potential BOF cases
56        -- Improved/fixed mp_lshd() and mp_invmod()
57        -- A load more bugs were fixed by various contributors
58
59
60 Aug 29th, 2017
61 v1.0.1
62        -- Dmitry Kovalenko provided fixes to mp_add_d() and mp_init_copy()
63        -- Matt Johnston contributed some improvements to mp_div_2d(),
64           mp_exptmod_fast(), mp_mod() and mp_mulmod()
65        -- Julien Nabet provided a fix to the error handling in mp_init_multi()
66        -- Ben Gardner provided a fix regarding usage of reserved keywords
67        -- Fixed mp_rand() to fill the correct number of bits
68        -- Fixed mp_invmod()
69        -- Use the same 64-bit detection code as in libtomcrypt
70        -- Correct usage of DESTDIR, PREFIX, etc. when installing the library
71        -- Francois Perrad updated all the perl scripts to an actual perl version
72
73
74 Feb 5th, 2016
75 v1.0
76        -- Bump to 1.0
77        -- Dirkjan Bussink provided a faster version of mp_expt_d()
78        -- Moritz Lenz contributed a fix to mp_mod()
79           and provided mp_get_long() and mp_set_long()
80        -- Fixed bugs in mp_read_radix(), mp_radix_size
81           Thanks to shameister, Gerhard R,
82        -- Christopher Brown provided mp_export() and mp_import()
83        -- Improvements in the code of mp_init_copy()
84           Thanks to ramkumarkoppu,
85        -- lomereiter provided mp_balance_mul()
86        -- Alexander Boström from the heimdal project contributed patches to
87           mp_prime_next_prime() and mp_invmod() and added a mp_isneg() macro
88        -- Fix build issues for Linux x32 ABI
89        -- Added mp_get_long_long() and mp_set_long_long()
90        -- Carlin provided a patch to use arc4random() instead of rand()
91           on platforms where it is supported
92        -- Karel Miko provided mp_sqrtmod_prime()
93
94
95 July 23rd, 2010
96 v0.42.0
97        -- Fix for mp_prime_next_prime() bug when checking generated prime
98        -- allow mp_shrink to shrink initialized, but empty MPI's
99        -- Added project and solution files for Visual Studio 2005 and Visual Studio 2008.
100
101 March 10th, 2007
102 v0.41  -- Wolfgang Ehrhardt suggested a quick fix to mp_div_d() which makes the detection of powers of two quicker.
103        -- [CRI] Added libtommath.dsp for Visual C++ users.
104
105 December 24th, 2006
106 v0.40  -- Updated makefile to properly support LIBNAME
107        -- Fixed bug in fast_s_mp_mul_high_digs() which overflowed (line 83), thanks Valgrind!
108
109 April 4th, 2006
110 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
111        -- Bruce Guenter suggested I use --tag=CC for libtool builds where the compiler may think it's C++.
112        -- "mm" from sci.crypt pointed out that my mp_gcd was sub-optimal (I also updated and corrected the book)
113        -- updated some of the @@ tags in tommath.src to reflect source changes.
114        -- updated email and url info in all source files
115
116 Jan 26th, 2006
117 v0.38  -- broken makefile.shared fixed
118        -- removed some carry stores that were not required [updated text]
119
120 November 18th, 2005
121 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.
122        -- [rinick@gmail.com] reported the makefile.bcc was messed up.  Fixed.
123        -- [Kevin Kenny] reported some issues with mp_toradix_n().  Now it doesn't require a min of 3 chars of output.
124        -- Made the make command renamable.  Wee
125
126 August 1st, 2005
127 v0.36  -- LTM_PRIME_2MSB_ON was fixed and the "OFF" flag was removed.
128        -- [Peter LaDow] found a typo in the XREALLOC macro
129        -- [Peter LaDow] pointed out that mp_read_(un)signed_bin should have "const" on the input
130        -- Ported LTC patch to fix the prime_random_ex() function to get the bitsize correct [and the maskOR flags]
131        -- Kevin Kenny pointed out a stray //
132        -- David Hulton pointed out a typo in the textbook [mp_montgomery_setup() pseudo-code]
133        -- Neal Hamilton (Elliptic Semiconductor) pointed out that my Karatsuba notation was backwards and that I could use
134           unsigned operations in the routine.
135        -- Paul Schmidt pointed out a linking error in mp_exptmod() when BN_S_MP_EXPTMOD_C is undefined (and another for read_radix)
136        -- Updated makefiles to be way more flexible
137
138 March 12th, 2005
139 v0.35  -- Stupid XOR function missing line again... oops.
140        -- Fixed bug in invmod not handling negative inputs correctly [Wolfgang Ehrhardt]
141        -- Made exteuclid always give positive u3 output...[ Wolfgang Ehrhardt ]
142        -- [Wolfgang Ehrhardt] Suggested a fix for mp_reduce() which avoided underruns.  ;-)
143        -- mp_rand() would emit one too many digits and it was possible to get a 0 out of it ... oops
144        -- Added montgomery to the testing to make sure it handles 1..10 digit moduli correctly
145        -- Fixed bug in comba that would lead to possible erroneous outputs when "pa < digs"
146        -- Fixed bug in mp_toradix_size for "0" [Kevin Kenny]
147        -- Updated chapters 1-5 of the textbook ;-) It now talks about the new comba code!
148
149 February 12th, 2005
150 v0.34  -- Fixed two more small errors in mp_prime_random_ex()
151        -- Fixed overflow in mp_mul_d() [Kevin Kenny]
152        -- Added mp_to_(un)signed_bin_n() functions which do bounds checking for ya [and report the size]
153        -- 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
154           Actually is faster than Montgomery on my AMD64 (and probably much faster on a P4)
155        -- Updated the manual a bit
156        -- Ok so I haven't done the textbook work yet... My current freelance gig has landed me in France till the
157           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.
158           As of this release the API will freeze.  At least until the book catches up with all the changes.  I welcome
159           bug reports but new algorithms will have to wait.
160
161 December 23rd, 2004
162 v0.33  -- Fixed "small" variant for mp_div() which would munge with negative dividends...
163        -- Fixed bug in mp_prime_random_ex() which would set the most significant byte to zero when
164           no special flags were set
165        -- Fixed overflow [minor] bug in fast_s_mp_sqr()
166        -- Made the makefiles easier to configure the group/user that ltm will install as
167        -- Fixed "final carry" bug in comba multipliers. (Volkan Ceylan)
168        -- Matt Johnston pointed out a missing semi-colon in mp_exptmod
169
170 October 29th, 2004
171 v0.32  -- Added "makefile.shared" for shared object support
172        -- Added more to the build options/configs in the manual
173        -- Started the Depends framework, wrote dep.pl to scan deps and
174           produce "callgraph.txt" ;-)
175        -- Wrote SC_RSA_1 which will enable close to the minimum required to perform
176           RSA on 32-bit [or 64-bit] platforms with LibTomCrypt
177        -- Merged in the small/slower mp_div replacement.  You can now toggle which
178           you want to use as your mp_div() at build time.  Saves roughly 8KB or so.
179        -- Renamed a few files and changed some comments to make depends system work better.
180           (No changes to function names)
181        -- Merged in new Combas that perform 2 reads per inner loop instead of the older
182           3reads/2writes per inner loop of the old code.  Really though if you want speed
183           learn to use TomsFastMath ;-)
184
185 August 9th, 2004
186 v0.31  -- "profiled" builds now :-) new timings for Intel Northwoods
187        -- Added "pretty" build target
188        -- Update mp_init() to actually assign 0's instead of relying on calloc()
189        -- "Wolfgang Ehrhardt" <Wolfgang.Ehrhardt@munich.netsurf.de> found a bug in mp_mul() where if
190           you multiply a negative by zero you get negative zero as the result.  Oops.
191        -- J Harper from PeerSec let me toy with his AMD64 and I got 60-bit digits working properly
192           [this also means that I fixed a bug where if sizeof(int) < sizeof(mp_digit) it would bug]
193
194 April 11th, 2004
195 v0.30  -- Added "mp_toradix_n" which stores upto "n-1" least significant digits of an mp_int
196        -- Johan Lindh sent a patch so MSVC wouldn't whine about redefining malloc [in weird dll modes]
197        -- Henrik Goldman spotted a missing OPT_CAST in mp_fwrite()
198        -- Tuned tommath.h so that when MP_LOW_MEM is defined MP_PREC shall be reduced.
199           [I also allow MP_PREC to be externally defined now]
200        -- Sped up mp_cnt_lsb() by using a 4x4 table [e.g. 4x speedup]
201        -- Added mp_prime_random_ex() which is a more versatile prime generator accurate to
202           exact bit lengths (unlike the deprecated but still available mp_prime_random() which
203           is only accurate to byte lengths).  See the new LTM_PRIME_* flags ;-)
204        -- Alex Polushin contributed an optimized mp_sqrt() as well as mp_get_int() and mp_is_square().
205           I've cleaned them all up to be a little more consistent [along with one bug fix] for this release.
206        -- Added mp_init_set and mp_init_set_int to initialize and set small constants with one function
207           call.
208        -- Removed /etclib directory [um LibTomPoly deprecates this].
209        -- Fixed mp_mod() so the sign of the result agrees with the sign of the modulus.
210        ++ N.B.  My semester is almost up so expect updates to the textbook to be posted to the libtomcrypt.org
211           website.
212
213 Jan 25th, 2004
214 v0.29  ++ Note: "Henrik" from the v0.28 changelog refers to Henrik Goldman ;-)
215        -- Added fix to mp_shrink to prevent a realloc when used == 0 [e.g. realloc zero bytes???]
216        -- Made the mp_prime_rabin_miller_trials() function internal table smaller and also
217           set the minimum number of tests to two (sounds a bit safer).
218        -- Added a mp_exteuclid() which computes the extended euclidean algorithm.
219        -- Fixed a memory leak in s_mp_exptmod() [called when Barrett reduction is to be used] which would arise
220           if a multiplication or subsequent reduction failed [would not free the temp result].
221        -- Made an API change to mp_radix_size().  It now returns an error code and stores the required size
222           through an "int star" passed to it.
223
224 Dec 24th, 2003
225 v0.28  -- Henrik Goldman suggested I add casts to the montomgery code [stores into mu...] so compilers wouldn't
226           spew [erroneous] diagnostics... fixed.
227        -- Henrik Goldman also spotted two typos.  One in mp_radix_size() and another in mp_toradix().
228        -- Added fix to mp_shrink() to avoid a memory leak.
229        -- Added mp_prime_random() which requires a callback to make truly random primes of a given nature
230           (idea from chat with Niels Ferguson at Crypto'03)
231        -- Picked up a second wind.  I'm filled with Gooo.  Mission Gooo!
232        -- Removed divisions from mp_reduce_is_2k()
233        -- Sped up mp_div_d() [general case] to use only one division per digit instead of two.
234        -- Added the heap macros from LTC to LTM.  Now you can easily [by editing four lines of tommath.h]
235           change the name of the heap functions used in LTM [also compatible with LTC via MPI mode]
236        -- Added bn_prime_rabin_miller_trials() which gives the number of Rabin-Miller trials to achieve
237           a failure rate of less than 2^-96
238        -- fixed bug in fast_mp_invmod().  The initial testing logic was wrong.  An invalid input is not when
239           "a" and "b" are even it's when "b" is even [the algo is for odd moduli only].
240        -- Started a new manual [finally].  It is incomplete and will be finished as time goes on.  I had to stop
241           adding full demos around half way in chapter three so I could at least get a good portion of the
242           manual done.   If you really need help using the library you can always email me!
243        -- My Textbook is now included as part of the package [all Public Domain]
244
245 Sept 19th, 2003
246 v0.27  -- Removed changes.txt~ which was made by accident since "kate" decided it was
247           a good time to re-enable backups... [kde is fun!]
248        -- In mp_grow() "a->dp" is not overwritten by realloc call [re: memory leak]
249           Now if mp_grow() fails the mp_int is still valid and can be cleared via
250           mp_clear() to reclaim the memory.
251        -- Henrik Goldman found a buffer overflow bug in mp_add_d().  Fixed.
252        -- Cleaned up mp_mul_d() to be much easier to read and follow.
253
254 Aug 29th, 2003
255 v0.26  -- Fixed typo that caused warning with GCC 3.2
256        -- Martin Marcel noticed a bug in mp_neg() that allowed negative zeroes.
257           Also, Martin is the fellow who noted the bugs in mp_gcd() of 0.24/0.25.
258        -- Martin Marcel noticed an optimization [and slight bug] in mp_lcm().
259        -- Added fix to mp_read_unsigned_bin to prevent a buffer overflow.
260        -- Beefed up the comments in the baseline multipliers [and montgomery]
261        -- Added "mont" demo to the makefile.msvc in etc/
262        -- Optimized sign compares in mp_cmp from 4 to 2 cases.
263
264 Aug 4th, 2003
265 v0.25  -- Fix to mp_gcd again... oops (0,-a) == (-a, 0) == a
266        -- Fix to mp_clear which didn't reset the sign  [Greg Rose]
267        -- Added mp_error_to_string() to convert return codes to strings.  [Greg Rose]
268        -- Optimized fast_mp_invmod() to do the test for invalid inputs [both even]
269           first so temps don't have to be initialized if it's going to fail.
270        -- Optimized mp_gcd() by removing mp_div_2d calls for when one of the inputs
271           is odd.
272        -- Tons of new comments, some indentation fixups, etc.
273        -- mp_jacobi() returns MP_VAL if the modulus is less than or equal to zero.
274        -- fixed two typos in the header of each file :-)
275        -- LibTomMath is officially Public Domain [see LICENSE]
276
277 July 15th, 2003
278 v0.24  -- Optimized mp_add_d and mp_sub_d to not allocate temporary variables
279        -- Fixed mp_gcd() so the gcd of 0,0 is 0.  Allows the gcd operation to be chained
280           e.g. (0,0,a) == a [instead of 1]
281        -- Should be one of the last release for a while.  Working on LibTomMath book now.
282        -- optimized the pprime demo [/etc/pprime.c] to first make a huge table of single
283           digit primes then it reads them randomly instead of randomly choosing/testing single
284           digit primes.
285
286 July 12th, 2003
287 v0.23  -- Optimized mp_prime_next_prime() to not use mp_mod [via is_divisible()] in each
288           iteration.  Instead now a smaller table is kept of the residues which can be updated
289           without division.
290        -- Fixed a bug in next_prime() where an input of zero would be treated as odd and
291           have two added to it [to move to the next odd].
292        -- fixed a bug in prime_fermat() and prime_miller_rabin() which allowed the base
293           to be negative, zero or one.  Normally the test is only valid if the base is
294           greater than one.
295        -- changed the next_prime() prototype to accept a new parameter "bbs_style" which
296           will find the next prime congruent to 3 mod 4.  The default [bbs_style==0] will
297           make primes which are either congruent to 1 or 3 mod 4.
298        -- fixed mp_read_unsigned_bin() so that it doesn't include both code for
299           the case DIGIT_BIT < 8 and >= 8
300        -- optimized div_d() to easy out on division by 1 [or if a == 0] and use
301           logical shifts if the divisor is a power of two.
302        -- the default DIGIT_BIT type was not int for non-default builds.  Fixed.
303
304 July 2nd, 2003
305 v0.22  -- Fixed up mp_invmod so the result is properly in range now [was always congruent to the inverse...]
306        -- Fixed up s_mp_exptmod and mp_exptmod_fast so the lower half of the pre-computed table isn't allocated
307           which makes the algorithm use half as much ram.
308        -- Fixed the install script not to make the book :-) [which isn't included anyways]
309        -- added mp_cnt_lsb() which counts how many of the lsbs are zero
310        -- optimized mp_gcd() to use the new mp_cnt_lsb() to replace multiple divisions by two by a single division.
311        -- applied similar optimization to mp_prime_miller_rabin().
312        -- Fixed a bug in both mp_invmod() and fast_mp_invmod() which tested for odd
313           via "mp_iseven() == 0" which is not valid [since zero is not even either].
314
315 June 19th, 2003
316 v0.21  -- Fixed bug in mp_mul_d which would not handle sign correctly [would not always forward it]
317        -- Removed the #line lines from gen.pl [was in violation of ISO C]
318
319 June 8th, 2003
320 v0.20  -- Removed the book from the package.  Added the TDCAL license document.
321        -- This release is officially pure-bred TDCAL again [last officially TDCAL based release was v0.16]
322
323 June 6th, 2003
324 v0.19  -- Fixed a bug in mp_montgomery_reduce() which was introduced when I tweaked mp_rshd() in the previous release.
325           Essentially the digits were not trimmed before the compare which cause a subtraction to occur all the time.
326        -- Fixed up etc/tune.c a bit to stop testing new cutoffs after 16 failures [to find more optimal points].
327           Brute force ho!
328
329
330 May 29th, 2003
331 v0.18  -- Fixed a bug in s_mp_sqr which would handle carries properly just not very elegantly.
332           (e.g. correct result, just bad looking code)
333        -- Fixed bug in mp_sqr which still had a 512 constant instead of MP_WARRAY
334        -- Added Toom-Cook multipliers [needs tuning!]
335        -- Added efficient divide by 3 algorithm mp_div_3
336        -- Re-wrote mp_div_d to be faster than calling mp_div
337        -- Added in a donated BCC makefile and a single page LTM poster (ahalhabsi@sbcglobal.net)
338        -- Added mp_reduce_2k which reduces an input modulo n = 2**p - k for any single digit k
339        -- Made the exptmod system be aware of the 2k reduction algorithms.
340        -- Rewrote mp_dr_reduce to be smaller, simpler and easier to understand.
341
342 May 17th, 2003
343 v0.17  -- Benjamin Goldberg submitted optimized mp_add and mp_sub routines.  A new gen.pl as well
344           as several smaller suggestions.  Thanks!
345        -- removed call to mp_cmp in inner loop of mp_div and put mp_cmp_mag in its place :-)
346        -- Fixed bug in mp_exptmod that would cause it to fail for odd moduli when DIGIT_BIT != 28
347        -- mp_exptmod now also returns errors if the modulus is negative and will handle negative exponents
348        -- mp_prime_is_prime will now return true if the input is one of the primes in the prime table
349        -- Damian M Gryski (dgryski@uwaterloo.ca) found a index out of bounds error in the
350           mp_fast_s_mp_mul_high_digs function which didn't come up before.  (fixed)
351        -- Refactored the DR reduction code so there is only one function per file.
352        -- Fixed bug in the mp_mul() which would erroneously avoid the faster multiplier [comba] when it was
353           allowed.  The bug would not cause the incorrect value to be produced just less efficient (fixed)
354        -- Fixed similar bug in the Montgomery reduction code.
355        -- Added tons of (mp_digit) casts so the 7/15/28/31 bit digit code will work flawlessly out of the box.
356           Also added limited support for 64-bit machines with a 60-bit digit.  Both thanks to Tom Wu (tom@arcot.com)
357        -- Added new comments here and there, cleaned up some code [style stuff]
358        -- Fixed a lingering typo in mp_exptmod* that would set bitcnt to zero then one.  Very silly stuff :-)
359        -- Fixed up mp_exptmod_fast so it would set "redux" to the comba Montgomery reduction if allowed.  This
360           saves quite a few calls and if statements.
361        -- Added etc/mont.c a test of the Montgomery reduction [assuming all else works :-| ]
362        -- Fixed up etc/tune.c to use a wider test range [more appropriate] also added a x86 based addition which
363           uses RDTSC for high precision timing.
364        -- Updated demo/demo.c to remove MPI stuff [won't work anyways], made the tests run for 2 seconds each so its
365           not so insanely slow.  Also made the output space delimited [and fixed up various errors]
366        -- Added logs directory, logs/graph.dem which will use gnuplot to make a series of PNG files
367           that go with the pre-made index.html.  You have to build [via make timing] and run ltmtest first in the
368           root of the package.
369        -- Fixed a bug in mp_sub and mp_add where "-a - -a" or "-a + a" would produce -0 as the result [obviously invalid].
370        -- Fixed a bug in mp_rshd.  If the count == a.used it should zero/return [instead of shifting]
371        -- Fixed a "off-by-one" bug in mp_mul2d.  The initial size check on alloc would be off by one if the residue
372           shifting caused a carry.
373        -- Fixed a bug where s_mp_mul_digs() would not call the Comba based routine if allowed.  This made Barrett reduction
374           slower than it had to be.
375
376 Mar 29th, 2003
377 v0.16  -- Sped up mp_div by making normalization one shift call
378        -- Sped up mp_mul_2d/mp_div_2d by aliasing pointers :-)
379        -- Cleaned up mp_gcd to use the macros for odd/even detection
380        -- Added comments here and there, mostly there but occasionally here too.
381
382 Mar 22nd, 2003
383 v0.15  -- Added series of prime testing routines to lib
384        -- Fixed up etc/tune.c
385        -- Added DR reduction algorithm
386        -- Beefed up the manual more.
387        -- Fixed up demo/demo.c so it doesn't have so many warnings and it does the full series of
388           tests
389        -- Added "pre-gen" directory which will hold a "gen.pl"'ed copy of the entire lib [done at
390           zipup time so its always the latest]
391        -- Added conditional casts for C++ users [boo!]
392
393 Mar 15th, 2003
394 v0.14  -- Tons of manual updates
395        -- cleaned up the directory
396        -- added MSVC makefiles
397        -- source changes [that I don't recall]
398        -- Fixed up the lshd/rshd code to use pointer aliasing
399        -- Fixed up the mul_2d and div_2d to not call rshd/lshd unless needed
400        -- Fixed up etc/tune.c a tad
401        -- fixed up demo/demo.c to output comma-delimited results of timing
402           also fixed up timing demo to use a finer granularity for various functions
403        -- fixed up demo/demo.c testing to pause during testing so my Duron won't catch on fire
404           [stays around 31-35C during testing :-)]
405
406 Feb 13th, 2003
407 v0.13  -- tons of minor speed-ups in low level add, sub, mul_2 and div_2 which propagate
408           to other functions like mp_invmod, mp_div, etc...
409        -- Sped up mp_exptmod_fast by using new code to find R mod m [e.g. B^n mod m]
410        -- minor fixes
411
412 Jan 17th, 2003
413 v0.12  -- re-wrote the majority of the makefile so its more portable and will
414           install via "make install" on most *nix platforms
415        -- Re-packaged all the source as seperate files.  Means the library a single
416           file packagage any more.  Instead of just adding "bn.c" you have to add
417           libtommath.a
418        -- Renamed "bn.h" to "tommath.h"
419        -- Changes to the manual to reflect all of this
420        -- Used GNU Indent to clean up the source
421
422 Jan 15th, 2003
423 v0.11  -- More subtle fixes
424        -- Moved to gentoo linux [hurrah!] so made *nix specific fixes to the make process
425        -- Sped up the montgomery reduction code quite a bit
426        -- fixed up demo so when building timing for the x86 it assumes ELF format now
427
428 Jan 9th, 2003
429 v0.10  -- Pekka Riikonen suggested fixes to the radix conversion code.
430        -- Added baseline montgomery and comba montgomery reductions, sped up exptmods
431           [to a point, see bn.h for MONTGOMERY_EXPT_CUTOFF]
432
433 Jan 6th, 2003
434 v0.09  -- Updated the manual to reflect recent changes.  :-)
435        -- Added Jacobi function (mp_jacobi) to supplement the number theory side of the lib
436        -- Added a Mersenne prime finder demo in ./etc/mersenne.c
437
438 Jan 2nd, 2003
439 v0.08  -- Sped up the multipliers by moving the inner loop variables into a smaller scope
440        -- Corrected a bunch of small "warnings"
441        -- Added more comments
442        -- Made "mtest" be able to use /dev/random, /dev/urandom or stdin for RNG data
443        -- Corrected some bugs where error messages were potentially ignored
444        -- add etc/pprime.c program which makes numbers which are provably prime.
445
446 Jan 1st, 2003
447 v0.07  -- Removed alot of heap operations from core functions to speed them up
448        -- Added a root finding function [and mp_sqrt macro like from MPI]
449        -- Added more to manual
450
451 Dec 31st, 2002
452 v0.06  -- Sped up the s_mp_add, s_mp_sub which inturn sped up mp_invmod, mp_exptmod, etc...
453        -- Cleaned up the header a bit more
454
455 Dec 30th, 2002
456 v0.05  -- Builds with MSVC out of the box
457        -- Fixed a bug in mp_invmod w.r.t. even moduli
458        -- Made mp_toradix and mp_read_radix use char instead of unsigned char arrays
459        -- Fixed up exptmod to use fewer multiplications
460        -- Fixed up mp_init_size to use only one heap operation
461           -- Note there is a slight "off-by-one" bug in the library somewhere
462              without the padding (see the source for comment) the library
463              crashes in libtomcrypt.  Anyways a reasonable workaround is to pad the
464              numbers which will always correct it since as the numbers grow the padding
465              will still be beyond the end of the number
466        -- Added more to the manual
467
468 Dec 29th, 2002
469 v0.04  -- Fixed a memory leak in mp_to_unsigned_bin
470        -- optimized invmod code
471        -- Fixed bug in mp_div
472        -- use exchange instead of copy for results
473        -- added a bit more to the manual
474
475 Dec 27th, 2002
476 v0.03  -- Sped up s_mp_mul_high_digs by not computing the carries of the lower digits
477        -- Fixed a bug where mp_set_int wouldn't zero the value first and set the used member.
478        -- fixed a bug in s_mp_mul_high_digs where the limit placed on the result digits was not calculated properly
479        -- fixed bugs in add/sub/mul/sqr_mod functions where if the modulus and dest were the same it wouldn't work
480        -- fixed a bug in mp_mod and mp_mod_d concerning negative inputs
481        -- mp_mul_d didn't preserve sign
482        -- Many many many many fixes
483        -- Works in LibTomCrypt now :-)
484        -- Added iterations to the timing demos... more accurate.
485        -- Tom needs a job.
486
487 Dec 26th, 2002
488 v0.02  -- Fixed a few "slips" in the manual.  This is "LibTomMath" afterall :-)
489        -- Added mp_cmp_mag, mp_neg, mp_abs and mp_radix_size that were missing.
490        -- Sped up the fast [comba] multipliers more [yahoo!]
491
492 Dec 25th,2002
493 v0.01  -- Initial release.  Gimme a break.
494        -- Todo list,
495            add details to manual [e.g. algorithms]
496            more comments in code
497            example programs