⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changes.txt

📁 tommath库
💻 TXT
📖 第 1 页 / 共 2 页
字号:
December 23rd, 2004v0.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_exptmodOctober 29th, 2004v0.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, 2004v0.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" <Wolfgang.Ehrhardt@munich.netsurf.de> 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]April 11th, 2004v0.30  -- Added "mp_toradix_n" which stores upto "n-1" least significant digits of an mp_int       -- Johan Lindh sent a patch so MSVC wouldn't whine about redefining malloc [in weird dll modes]       -- Henrik Goldman spotted a missing OPT_CAST in mp_fwrite()       -- Tuned tommath.h so that when MP_LOW_MEM is defined MP_PREC shall be reduced.          [I also allow MP_PREC to be externally defined now]       -- Sped up mp_cnt_lsb() by using a 4x4 table [e.g. 4x speedup]       -- Added mp_prime_random_ex() which is a more versatile prime generator accurate to          exact bit lengths (unlike the deprecated but still available mp_prime_random() which          is only accurate to byte lengths).  See the new LTM_PRIME_* flags ;-)       -- Alex Polushin contributed an optimized mp_sqrt() as well as mp_get_int() and mp_is_square().          I've cleaned them all up to be a little more consistent [along with one bug fix] for this release.       -- Added mp_init_set and mp_init_set_int to initialize and set small constants with one function          call.       -- Removed /etclib directory [um LibTomPoly deprecates this].       -- Fixed mp_mod() so the sign of the result agrees with the sign of the modulus.       ++ N.B.  My semester is almost up so expect updates to the textbook to be posted to the libtomcrypt.org           website.  Jan 25th, 2004v0.29  ++ Note: "Henrik" from the v0.28 changelog refers to Henrik Goldman ;-)       -- Added fix to mp_shrink to prevent a realloc when used == 0 [e.g. realloc zero bytes???]       -- Made the mp_prime_rabin_miller_trials() function internal table smaller and also          set the minimum number of tests to two (sounds a bit safer).       -- Added a mp_exteuclid() which computes the extended euclidean algorithm.       -- Fixed a memory leak in s_mp_exptmod() [called when Barrett reduction is to be used] which would arise          if a multiplication or subsequent reduction failed [would not free the temp result].       -- Made an API change to mp_radix_size().  It now returns an error code and stores the required size          through an "int star" passed to it.Dec 24th, 2003v0.28  -- Henrik Goldman suggested I add casts to the montomgery code [stores into mu...] so compilers wouldn't          spew [erroneous] diagnostics... fixed.       -- Henrik Goldman also spotted two typos.  One in mp_radix_size() and another in mp_toradix().       -- Added fix to mp_shrink() to avoid a memory leak.       -- Added mp_prime_random() which requires a callback to make truly random primes of a given nature          (idea from chat with Niels Ferguson at Crypto'03)       -- Picked up a second wind.  I'm filled with Gooo.  Mission Gooo!       -- Removed divisions from mp_reduce_is_2k()       -- Sped up mp_div_d() [general case] to use only one division per digit instead of two.       -- Added the heap macros from LTC to LTM.  Now you can easily [by editing four lines of tommath.h]          change the name of the heap functions used in LTM [also compatible with LTC via MPI mode]       -- Added bn_prime_rabin_miller_trials() which gives the number of Rabin-Miller trials to achieve          a failure rate of less than 2^-96       -- fixed bug in fast_mp_invmod().  The initial testing logic was wrong.  An invalid input is not when          "a" and "b" are even it's when "b" is even [the algo is for odd moduli only].       -- Started a new manual [finally].  It is incomplete and will be finished as time goes on.  I had to stop          adding full demos around half way in chapter three so I could at least get a good portion of the          manual done.   If you really need help using the library you can always email me!       -- My Textbook is now included as part of the package [all Public Domain]Sept 19th, 2003v0.27  -- Removed changes.txt~ which was made by accident since "kate" decided it was          a good time to re-enable backups... [kde is fun!]       -- In mp_grow() "a->dp" is not overwritten by realloc call [re: memory leak]          Now if mp_grow() fails the mp_int is still valid and can be cleared via          mp_clear() to reclaim the memory.       -- Henrik Goldman found a buffer overflow bug in mp_add_d().  Fixed.       -- Cleaned up mp_mul_d() to be much easier to read and follow.Aug 29th, 2003v0.26  -- Fixed typo that caused warning with GCC 3.2       -- Martin Marcel noticed a bug in mp_neg() that allowed negative zeroes.          Also, Martin is the fellow who noted the bugs in mp_gcd() of 0.24/0.25.       -- Martin Marcel noticed an optimization [and slight bug] in mp_lcm().       -- Added fix to mp_read_unsigned_bin to prevent a buffer overflow.       -- Beefed up the comments in the baseline multipliers [and montgomery]       -- Added "mont" demo to the makefile.msvc in etc/       -- Optimized sign compares in mp_cmp from 4 to 2 cases.Aug 4th, 2003v0.25  -- Fix to mp_gcd again... oops (0,-a) == (-a, 0) == a       -- Fix to mp_clear which didn't reset the sign  [Greg Rose]       -- Added mp_error_to_string() to convert return codes to strings.  [Greg Rose]       -- Optimized fast_mp_invmod() to do the test for invalid inputs [both even]          first so temps don't have to be initialized if it's going to fail.       -- Optimized mp_gcd() by removing mp_div_2d calls for when one of the inputs          is odd.       -- Tons of new comments, some indentation fixups, etc.       -- mp_jacobi() returns MP_VAL if the modulus is less than or equal to zero.       -- fixed two typos in the header of each file :-)       -- LibTomMath is officially Public Domain [see LICENSE]July 15th, 2003v0.24  -- Optimized mp_add_d and mp_sub_d to not allocate temporary variables       -- Fixed mp_gcd() so the gcd of 0,0 is 0.  Allows the gcd operation to be chained          e.g. (0,0,a) == a [instead of 1]       -- Should be one of the last release for a while.  Working on LibTomMath book now.       -- optimized the pprime demo [/etc/pprime.c] to first make a huge table of single          digit primes then it reads them randomly instead of randomly choosing/testing single          digit primes.July 12th, 2003v0.23  -- Optimized mp_prime_next_prime() to not use mp_mod [via is_divisible()] in each          iteration.  Instead now a smaller table is kept of the residues which can be updated          without division.       -- Fixed a bug in next_prime() where an input of zero would be treated as odd and          have two added to it [to move to the next odd].       -- fixed a bug in prime_fermat() and prime_miller_rabin() which allowed the base          to be negative, zero or one.  Normally the test is only valid if the base is          greater than one.       -- changed the next_prime() prototype to accept a new parameter "bbs_style" which          will find the next prime congruent to 3 mod 4.  The default [bbs_style==0] will          make primes which are either congruent to 1 or 3 mod 4.       -- fixed mp_read_unsigned_bin() so that it doesn't include both code for          the case DIGIT_BIT < 8 and >= 8       -- optimized div_d() to easy out on division by 1 [or if a == 0] and use          logical shifts if the divisor is a power of two.       -- the default DIGIT_BIT type was not int for non-default builds.  Fixed.July 2nd, 2003v0.22  -- Fixed up mp_invmod so the result is properly in range now [was always congruent to the inverse...]       -- Fixed up s_mp_exptmod and mp_exptmod_fast so the lower half of the pre-computed table isn't allocated          which makes the algorithm use half as much ram.       -- Fixed the install script not to make the book :-) [which isn't included anyways]       -- added mp_cnt_lsb() which counts how many of the lsbs are zero       -- optimized mp_gcd() to use the new mp_cnt_lsb() to replace multiple divisions by two by a single division.       -- applied similar optimization to mp_prime_miller_rabin().       -- Fixed a bug in both mp_invmod() and fast_mp_invmod() which tested for odd          via "mp_iseven() == 0" which is not valid [since zero is not even either].June 19th, 2003v0.21  -- Fixed bug in mp_mul_d which would not handle sign correctly [would not always forward it]       -- Removed the #line lines from gen.pl [was in violation of ISO C]June 8th, 2003v0.20  -- Removed the book from the package.  Added the TDCAL license document.       -- This release is officially pure-bred TDCAL again [last officially TDCAL based release was v0.16]June 6th, 2003v0.19  -- Fixed a bug in mp_montgomery_reduce() which was introduced when I tweaked mp_rshd() in the previous release.          Essentially the digits were not trimmed before the compare which cause a subtraction to occur all the time.       -- Fixed up etc/tune.c a bit to stop testing new cutoffs after 16 failures [to find more optimal points].          Brute force ho!

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -