changes.txt 24 KB

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