changes 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. Jul 10th, 2003
  2. v0.88 -- Sped up CAST5 key schedule for MSVC
  3. -- added "ulong32" which allows people on 64-bit platforms to force the 32-bit tables in
  4. ciphers like blowfish and AES to be 32-bits. E.g. when unsigned long is 64-bits.
  5. -- Optimized the SAFER-SK64, SAFER-SK128, SAFER+, RC5 and RC6 key schedule [big time!]
  6. -- Optimized SHA-1 and SHA-256 quite a bit too.
  7. -- Fixed up the makefile to use -fomit-frame-pointer more liberally
  8. -- Added tv_gen program which makes test vectors for ciphers/hashes
  9. -- Merged in LibTomMath v0.22
  10. Jun 19th, 2003
  11. v0.87 -- Many MSVC optimizations to the code base
  12. -- Improved the AES and Twofish key schedule [faster, more constant time]
  13. -- Tons of optimizations here and there.
  14. Jun 15th, 2003
  15. v0.86 -- Fixed up AES to workaround MSVC optimizer bug
  16. -- Merged in fresh LTM base [based on v0.20] so there are no warnings with MSVC
  17. -- Wrote x86_prof which will time the hashes and ciphers downto cycles per byte.
  18. -- Fixed up demos/encrypt to remove serpent_desc from the list
  19. -- Re-enabled MSVC optimizations w00t w00t
  20. -- Replaced "errno" with "err" in all functions that had it so it wouldn't clash
  21. with the global "errno"
  22. -- Removed a set of unused variables from certain functions
  23. -- Removed {#line 0 "..."} stuff from mpi.c to comply with ISO C :-)
  24. Jun 11th, 2003
  25. v0.85 -- Swapped in a new AES routine
  26. -- Removed Serpent
  27. -- Added TDCAL policy document
  28. Jun 1st, 2003
  29. v0.84 -- Removed a 4KB buffer from rsa_decrypt_key that wasn't being used no more
  30. -- Fixed another potential buffer problem. Not an overflow but could cause the
  31. PK import routines to read past the end of the buffer.
  32. -- Optimized the ECC mulmod more by removing a if condition that will always be false
  33. -- Optimized prime.c to not include a 2nd prime table, removed code from is_prime calls prime
  34. test from LibTomMath now
  35. -- Added LTC_TEST define which when defined will enable the test vector routines [see mycrypt_custom.h]
  36. -- Removed ampi.o from the depends cuz it ain't no not working in *nix with it [routines are in mpi.c now].
  37. Mar 29th, 2003
  38. v0.83 -- Optimized the ecc_mulmod, it's faster and takes less heap/stack space
  39. -- Fixed a free memory error in ecc_mulmod and del_point which would try to free NULL
  40. -- Fixed two serious bugs in rsa_decrypt_key and rsa_verify_hash that would allow a trivialy
  41. buffer overflow.
  42. -- Fixed a bug in the hmac testing code if you don't register all the hashes it won't return
  43. errors now.
  44. Mar 15th, 2003
  45. v0.82 -- Manual updated
  46. -- Added MSVC makefile [back, actually its written from scratch to work with NMAKE]
  47. -- Change to HMAC helper functions API to avoid buffer overflow [source changes]
  48. -- the rsa_encrypt_key was supposed to reject key sizes out of bounds ...
  49. same fix to the rsa_sign_hash
  50. -- Added code to ensure that that chaining mode code (cfb/ofb/ctr/cbc) have valid
  51. structures when being called. E.g. the indexes to the pad/ivs are not out of bounds
  52. -- Cleaned up the DES code and simplified the core desfunc routine.
  53. -- Simplified one of the boolean functions in MD4
  54. Jan 16th, 2003
  55. v0.81 -- Merged in new makefile from Clay Culver and Mike Frysinger
  56. -- Sped up the ECC mulmod() routine by making the word size adapt to the input. Saves a whopping 9 point
  57. operations on 521-bit keys now (translates to about 8ms on my Athlon XP). I also now use barrett reduction
  58. as much as possible. This sped the routine up quite a bit.
  59. -- Fixed a huge flaw in ecc_verify_hash() where it would return CRYPT_OK on error... Now fixed.
  60. -- Fixed up config.pl by fixing an invalid query and the file is saved in non-windows [e.g. not CR/LF] format
  61. (fix due to Mika Boström)
  62. -- Merged in LibTomMath for kicks
  63. -- Changed the build process so that by default "mycrypt_custom.h" is included and provided
  64. The makefile doesn't include any build options anymore
  65. -- Removed the PS2 and VC makefiles.
  66. Dec 16th, 2002
  67. v0.80 -- Found a change I made to the MPI that is questionable. Not quite a bug but definately not desired. Had todo
  68. with the digit shifting. In v0.79 I simply truncated without zeroing. It didn't cause problems during my
  69. testing but I fixed it up none the less.
  70. -- Optimized s_mp_mul_dig() from MPI to do a minimal number of passes.
  71. -- Fixed in rsa_exptmod() where I was getting the size of the result. Basically it accomplishes the same thing
  72. but the fixed code is more readable.
  73. -- Fixed slight bug in dh_sign_hash() where the random "k" value was 1 byte shorter than it should have been. I've
  74. also made the #define FAST_PK speed up signatures as well. Essentially FAST_PK tells the DH sub-system to
  75. limit any private exponent to 256-bits. Note that when FAST_PK is defined does not make the library
  76. binary or source incompatible with a copy of the library with it undefined.
  77. -- Removed the DSA code. If you want fast diffie-hellman just define FAST_PK :-)
  78. -- Updated dh_sign_hash()/dh_verify_hash() to export "unsigned" bignums. Saves two bytes but is not binary
  79. compatible with the previous release... sorry! I've performed the same fix to the ecc code as well.
  80. -- Fixed up the PK code to remove all use of mp_toraw() and mp_read_raw() [get all the changes out of the way now]
  81. -- Fixed a bug in the DH code where it missed trapping a few errors if they occurred.
  82. -- Fixed a slight "its-not-a-bug-but-could-be-done-better" bug in the next_prime() function. Essentially it was
  83. testing to ensure that in the loop that searches for the next candidate that the step never grows beyond
  84. 65000. Should have been testing for MP_DIGIT_MAX
  85. -- Spruced up the config.pl script. It now makes a header file "mycrypt_custom.h" which can be included *before*
  86. you include mycrypt.h. This allows you to add libtomcrypt to a project without completely changing your make
  87. system around. Note that you should use the makefile it writes to at least build the library initially.
  88. -- Used splint to check alot of the code out. Tons of minor fixes and explicit casts added.
  89. -- Also made all the internal functions of MPI are now static to avoid poluting the namespace
  90. -- **Notice**: There are no planned future releases for at least a month from the this release date.
  91. Dec 14th, 2002
  92. v0.79 -- Change to PK code [binary and source]. I made it so you have to pass the buffer size to the *_decrypt_key and
  93. *_verify_hash functions. This prevents malformed packets from performing buffer overflows. I've also trimmed
  94. the packet header size [by 4 bytes].
  95. -- Made the test program halt on the first error it occurs. Also made it trap more errors than before.
  96. -- Wrote the first chapter of my new book [DRAFT!], not in this package but check my website!
  97. -- Included a perl script "config.pl" that will make "makefile.out" according to the users needs.
  98. -- Added shell script to look for latest release
  99. -- Merge DH and ECC key defines from mycrypt_cfg.h into the makefiles
  100. -- updated the makefile to use BSD friendly archiving invokations
  101. -- Changed the DH and ECC code to use base64 static key settings [e.g. the primes]. Dropped the code size by 3KB
  102. and is ever-so-slightly faster than before.
  103. -- added "mp_shrink" function to shrink the size of bignums. Specially useful for PK code :-)
  104. -- Added new exptmod function that calculates a^b mod c with fewer multiplies then before [~20% for crypto
  105. sized numbers]. Also added a "low mem" variant that doesn't use more than 20KB [upto 4096 bit nums] of
  106. heap todo the calculation. Both are #define'able controlled
  107. -- Added XREALLOC macro to provide realloc() functionality.
  108. -- Added fix where in rsa_import() if you imported a public key or a non-optimized key it would free the mp_int's
  109. not being used.
  110. -- Fixed potential bug in the ECC code. Only would occur on platforms where char is not eight bits [which isn't
  111. often!]
  112. -- Fixed up the ECC point multiplication, its about 15% faster now
  113. -- While I was at it [since the lib isn't binary backwards compatible anyways] I've fixed the PK export routines
  114. so they export as "unsigned" types saving 1 byte per bignum outputted. Not a lot but heck why not.
  115. Nov 28th, 2002
  116. v0.78 -- Made the default ARGCHK macro a function call instead which reduced the code size from 264KB to 239KB.
  117. -- Fixed a bug in the XTEA keysize function which called ARGCHK incorrectly.
  118. -- Added Noekeon block cipher at 2,800 bytes of object code and 345Mbit/sec it is a welcome addition.
  119. -- Made the KR code check if the other PK systems are included [provides error when building otherwise].
  120. -- Made "aes" an alias for Rijndael via a pre-processor macro. Now you can use "aes_ecb_encrypt", etc... :-)
  121. Thanks to Jean-Luc Cooke for the "buzzword conformance" suggestion.
  122. -- Removed the old PK code entirely (e.g. rsa_sign, dh_encrypt). The *_sign_hash and *_encrypt_key functions
  123. are all that is to remain.
  124. -- **NOTE** Changed the PK *_import (including the keyring) routine to accept a "inlen" parameter. This fixes a
  125. bug where improperly made key packets could result in reading passed the end of the buffer. This means
  126. the code is no longer source compatible but still binary compatible.
  127. -- Fixed a few other minor bugs in the PK import code while I was at it.
  128. Nov 26th, 2002
  129. v0.77 -- Updated the XTEA code to use pre-computed keys. With optimizations for speed it achieves 222Mbit/sec
  130. compared to the 121Mbit/sec before. It is 288 bytes bigger than before.
  131. -- Cleaned up some of the ciphers and hashes (coding style, cosmetic changes)
  132. -- Optimized AES slightly for 256-bit keys [only one if statement now, still two for 192-bit keys]
  133. -- Removed most test cases from Blowfish, left three of them there. Makes it smaller and faster to test.
  134. -- Changed the primality routines around. I now use 8 rounds of Rabin-Miller, I use 256 primes in the sieve
  135. step and the "rand_prime" function uses a modified sieve that avoids alot of un-needed bignum work.
  136. -- Fixed a bug in the ECC/DH signatures where the keys "setting" value was not checked for validity. This means
  137. that a invalid value could have caused segfaults, etc...
  138. -- **NOTE** Changed the way the ECC/DH export/import functions work. They are source but not binary compatible
  139. with v0.76. Essentially insteading of exporting the setting index like before I export the key size. Now
  140. if you ever re-configure which key settings are supported the lib will still be able to make use of your
  141. keys.
  142. -- Optimized Blowfish by inlining the round function, unrolling it for four rounds then using a for loop for the
  143. rest. It achieves a rate of 425Mbit/sec with the new code compared to 314Mbit/sec before. The new blowfish
  144. object file is 7,813 bytes compared to 8,663 before and is 850 bytes smaller. So the code is both smaller and
  145. faster!
  146. -- Optimized Twofish as well by inlining the round function. Gets ~400Mbit/sec compared to 280Mbit/sec before
  147. and the code is only 78 bytes larger than the previous copy.
  148. -- Removed SMALL_PRIME_TAB build option. I use the smaller table always.
  149. -- Fixed some mistakes concerning prime generation in the manual.
  150. -- [Note: sizes/speeds are for GCC 3.2 on an x86 Athlon XP @ 1.53Ghz]
  151. Nov 25th, 2002
  152. v0.76 -- Updated makefiles a bit more, use "-Os" instead of "-O2" to optimize for size. Got the lib
  153. downto 265KB using GCC 3.2 on my x86 box.
  154. -- Updated the SAFER+, Twofish and Rijndael test vector routine to use the table driven design.
  155. -- Updated all other test vector routines to return as soon as an error is found
  156. -- fixed a bug in the test program where errors in the hash test routines would not be reported
  157. correctly. I found this by temporarily changing one of the bytes of the test vectors. All the
  158. hashes check out [the demos/test.c would still have reported an error, just the wrong one].
  159. Nov 24th, 2002
  160. v0.75 -- Fixed a flaw in hash_filehandle, it should ARGCHK that the filehandle is not NULL
  161. -- Fixed a bug where in hash_file if the call to hash_filehandle failed the open file would
  162. not be closed.
  163. -- Added more strict rules to build process, starting to weed out "oh this works in GCC" style code
  164. In the next release "-Wconversion" will be enabled which will deal with all implicit casts.
  165. Nov 22nd, 2002 [later in the day]
  166. v0.74 -- Wrote a small variant of SAFER+ which shaved 50KB off the size of the library on x86 platforms
  167. -- Wrote a build option to remove the PK packet functions [keeps the encrypt_key/sign_hash functions]
  168. -- Wrote a small variant of Rijndael (trimmed 13KB)
  169. -- Trimmed the TIGER/192 hash function a bit
  170. -- Overall the entire lib compiled is 295KB [down from 400KB before]
  171. -- Fixed a few minor oversights in the MSVC makefile
  172. Nov 22nd, 2002
  173. v0.73 -- Fixed bug in RC4 code where it could only use 255 byte keys.
  174. -- Fixed bug in yarrow code where it would allow cast5 or md2 to be used with it...
  175. -- Removed the ecc compress/expand points from the global scope. Reduces namespace polution
  176. -- Fixed bug where if you used the SPRNG you couldn't pass NULL as your prng_state which you should be
  177. able todo since the SPRNG has no state...
  178. -- Corrected some oversights in the manual and the examples...
  179. -- By default the GF(2^W) math library is excluded from the build. The source is maintained because I wrote it
  180. and like it :-). This way the built library is a tad smaller
  181. -- the MSVC makefile will now build for a SPACE optimized library rather than TIME optimized.
  182. Nov 21th, 2002
  183. v0.72 -- Fixed bug in the prime testing. In the Miller-Rabin test I was raising the base to "N-1" not "r".
  184. The math still worked out fine because in effect it was performing a Fermat test. Tested the new code and it
  185. works properly
  186. -- Fixed some of the code where it was still using the old error syntax
  187. -- Sped up the RSA decrypt/sign routines
  188. -- Optimized the ecc_shared_secret routine to not use so much stack
  189. -- Fixed up the makefile to make releases where the version # is in the file name and directory it will unzip
  190. to
  191. Nov 19th, 2002
  192. v0.71 -- HELP TOM. I need tuition for the January semester. Now I don't want to force donations [nor will I ever]
  193. but I really need the help! See my website http://tom.iahu.ca/help_tom.html for more details. Please help
  194. if you can!
  195. --------------------------------------------------------------------------------------------------------------
  196. -- Officially the library is no longer supported in GCC 3.2 in windows [cygwin].
  197. In windows you can either use GCC 2.95.3 or try your luck with 3.2 It seems that
  198. "-fomit-frame-pointer" is broken in the windows build [but not the linux x86 build???]
  199. If you simply must use 3.2 then I suggest you limit the optimizations to simply "-O2"
  200. -- Started new error handling API. Similar to the previous except there are more error codes than just
  201. CRYPT_ERROR
  202. -- Added my implementation of the MD2 hash function [despite the errors in the RFC I managed to get it right!]
  203. -- Merged in more changes from Sky Schulz. I have to make mention here that he has been a tremendous help in
  204. getting me motivated to make some much needed updates to the library!
  205. -- Fixed one of the many mistakes in the manual as pointed out by Daniel Richards
  206. -- Fixed a bug in the RC4 code [wasn't setting up the key correctly]
  207. -- Added my implementation of the CAST5 [aka CAST-128] block cipher (conforms...)
  208. -- Fixed numerous bugs in the PK code. Essentially I was "freeing" keys when the import failed. This is neither
  209. required nor a good a idea [double free].
  210. -- Tom needs a job.
  211. -- Fixed up the test harness as requested by Sky Schulz. Also modifed the timing routines to run for X seconds
  212. and count # of ops performed. This is more suitable than say encrypting 10 million blocks on a slow processor
  213. where it could take minutes!
  214. -- Modified test programs hashsum/encrypt to use the new algorithms and error handling syntax
  215. -- Removed the PKCS code since it was incomplete. In the future I plan on writing a "add-on" library that
  216. provides PKCS support...
  217. -- updated the config system so the #defines are in the makefiles instead of mycrypt_cfg.h
  218. -- Willing to work on an hourly basis for 15$ CDN per hour.
  219. -- updated the test program to not test ciphers not included
  220. -- updated the makefile to make "rsa_sys.c" a dependency of rsa.o [helps develop the code...]
  221. -- fixed numerous failures to detect buffer overflows [minor] in the PK code.
  222. -- fixed the safer [64-bit block version] test routines which didn't check the returns of the setup
  223. function
  224. -- check out my CV at http://tom.iahu.ca/cv.html
  225. -- removed the GBA makefile and code from demos/test.c [not a particularly useful demo...]
  226. -- merged in rudimentary [for testing] PS2 RNG from Sky Schulz
  227. -- merged in PS2 timer code [only shell included due to NDA reasons...]
  228. -- updated HMAC code to return errors where possible
  229. -- Thanks go to Sky Schulz who bought me a RegCode for TextPad [the official editor of libtomcrypt]
  230. Nov 12th, 2002
  231. v0.70 -- Updated so you can swap out the default malloc/calloc/free routines at build time with others. (Sky Schulz)
  232. -- Sky Schulz contributed some code towards autodetecting the PS2 in mycrypt_cfg.h
  233. -- Added PS2 makefile contributed by Sky Schulz [see a pattern forming?]
  234. -- Added ability to have no FILE I/O functions at all (see makefile), Sky Schulz....
  235. -- Added support for substituting out the clock() function (Sky Schulz)
  236. -- Fixed up makefile to include new headers in the HEADERS variable
  237. -- Removed "coin.c" as its not really useful anyways
  238. -- Removed many "debug" printfs that would show up on failures. Basically I wanted to ensure the only output
  239. would be from the developer themselves.
  240. -- Added "rc4.c" a RC4 implementation with a PRNG interface. Since RC4 isn't a block cipher it wouldn't work
  241. too well as a block cipher.
  242. -- Fixed ARGCHK macro usage when ARGTYPE=1 throughout the code
  243. -- updated makefile to make subdirectory properly (Sku Schulz)
  244. -- Started towards new API setup. Instead of checking for "== CRYPT_ERROR" you should check "!= CRYPT_OK"
  245. In future releases functions will return things other than CRYPT_ERROR on error to give more useful
  246. thread safe error reporting. The manual will be updated to reflect this. For this release all
  247. errors are returned as CRYPT_ERROR (except as noted) but in future releases this will change.
  248. -- Removed the zlib branch since its not really required anyways. Makes the package smaller
  249. Nov 11th, 2002
  250. v0.69 -- Added ARGCHK (see mycrypt_argchk.h) "arguement checking" to all functions that accept pointers
  251. -- Note I forgot to change the CRYPT version tag in v0.68... fixed now.
  252. Nov 8th, 2002
  253. v0.68 -- Fixed flaw in kr_import/kr_export that wasted 4 bytes. Source but not binary compatible with v0.67
  254. -- Fixed bug in kr_find_name that used memcmp to match strings. Uses strncmp now.
  255. -- kr_clear now sets the pointer to NULL to facilate debugging [e.g. using the keyring after clearing]
  256. -- static functions in _write/_read in keyring.c now check the return of ctr_encrypt/ctr_decrypt.
  257. -- Updated blowfish/rc2/rc5/rc6 keysize() function to not reject keys larger than the biggest key the
  258. respective ciphers can use.
  259. -- Fixed a bug in hashsum demo that would report the hash for files that don't exist!
  260. Oct 16th, 2002
  261. v0.67 -- Moved the function prototypes into files mycrypt_*.h. To "install" the lib just copy all the
  262. header files "*.h" from the base of this project into your global include path.
  263. -- Made the OFB/CFB/CTR functions use "unsigned long" for the length instead of "int"
  264. -- Added keyring support for the PK functions
  265. -- ***API CHANGE*** changed the ecc_make_key and dh_make_key to act more like rsa_make_key. Basically
  266. move the first argument to the next to last.
  267. -- Fixed bug in dh_test() that wouldn't test the primality of the order of the sub-group
  268. -- replaced the primes in the DH code with new ones that are larger than the size they are
  269. associated with. That is a 1024-bit DH key will have a 1025-bit prime as the modulus
  270. -- cleaned up all the PK code, changed a bit of the API around [not source compatible with v0.66]
  271. -- major editing of the manual, started Docer program
  272. -- added 160 and 224 bit key settings for ECC. This makes the DH and ECC binary wise incompatible with v0.66
  273. -- Added an additional check for memory errors in is_prime() and cleaned up prime.c a bit
  274. -- Removed ID_TAG from all files [meh, not a big fan...]
  275. -- Removed unused variable from yarrow state and made AES/SHA256 the default cipher/hash combo
  276. -- Fixed a bug in the Yarrow code that called prng_is_valid instead of cipher_is_valid from yarrow_start()
  277. -- The ECB/CBC/OFB/CFB/CTR wrappers now check that the cipher is valid in the encrypt/decrypt calls
  278. Returns int now instead of void.
  279. Sept 24th, 2002
  280. v0.66 -- Updated the /demos/test.c program to time the hashes correctly. Also it uses the yarrow PRNG for all of the
  281. tests meaning its possible to run on RNG less platforms
  282. -- Updated the /demos/hashsum.c program to hash from the standard input
  283. -- Updated the RSA code to make keys a bit quicker [update by Wayne Scott] by not making both primes at the same
  284. time.
  285. -- Dan Kaminsky suggested some cleanups for the code and the MPI config
  286. Code ships in unix LF format by default now too... will still build in MSVC and all... but if you want
  287. to read the stuff you'll have to convert it
  288. -- Changes to the manual to reflect new API [e.g. hash_memory/file have v0.65 prototypes]and some typos fixed
  289. Sept 20th, 2002
  290. v0.65 -- Wayne Scott ([email protected]) made a few of suggestions to improve the library. Most
  291. importantly he pointed out the math lib is not really required. He's also tested the lib on 18
  292. different platforms. According to him with only a few troubles [lack of /dev/random, etc] the
  293. library worked as it was supposed to. You can find the list at
  294. http://www.bitkeeper.com/Products.BitKeeper.Platforms.html
  295. -- Updated the hash_file and hash_memory functions to keep track of the size of the output
  296. -- Wayne Scott updated the demos/test.c file to use the SPRNG less and Yarrow more
  297. -- Modified the mycrypt_cfg.h to autodetect x86-32 machines
  298. Sept 19th, 2002
  299. v0.64 -- wrote makefile for the GBA device [and hacked the demos/test.c file to support it conditionally]
  300. -- Fixed error in PK (e.g. ECC, RSA, DH) import functions where I was clobbering the packet error messages
  301. -- fixed more typos in the manual
  302. -- removed all unused variables from the core library (ignore the ID_TAG stuff)
  303. -- added "const char *crypt_build_settings" string which is a build time constant that gives a listing
  304. of all the build time options. Useful for debugging since you can send that to me and I will know what
  305. exactly you had set for the mycrypt_cfg.h file.
  306. -- Added control over endianess. Out of the box it defaults to endianess neutral but you can trivially
  307. configure the library for your platform. Using this I boosted RC5 from 660Mbit/sec to 785Mbit/sec on my
  308. Athlon box. See "mycrypt_cfg.h" for more information.
  309. Sept 11th, 2002
  310. v0.63 -- Made hashsum demo output like the original md5sum program
  311. -- Made additions to the examples in the manual (fixed them up a bunch)
  312. -- Merged in the base64 code from Wayne Scott ([email protected])
  313. Aug 29th, 2002
  314. v0.62 -- Added the CLEAN_STACK functionality to several of the hashes I forgot to update.
  315. Aug 9th, 2002
  316. v0.61 -- Fixed a bug in the DES code [oops I read something wrong].
  317. Aug 8th, 2002
  318. v0.60 -- Merged in DES code [and wrote 3DES-EDE code based on it] from Dobes V.
  319. Aug 7th, 2002
  320. v0.59 -- Fixed a "unsigned long long" bug that caused v0.58 not to build in MSVC.
  321. -- Cleaned up a little in the makefile
  322. -- added code that times the hash functions too in the test program
  323. Aug 3rd, 2002
  324. v0.58 -- Added more stack cleaning conditionals throughout the code.
  325. -- corrected some CLEAR_STACK conditionals... should have been CLEAN_STACK
  326. -- Simplified the RSA, DH and ECC encrypt() routines where they use CTR to encode the message
  327. now they only make one call to ctr_encrypt()/ctr_decrypt().
  328. Aug 2nd, 2002
  329. v0.57 -- Fixed a few errors messages in the SAFER code to actually report the correct cipher name.
  330. -- rsa_encrypt() uses the "keysize()" method of the cipher being used to more accurately pick a
  331. key size. By default rsa_encrypt() will choose to use a 256-bit key but the cipher can turn that
  332. down if required.
  333. -- The rsa_exptmod() function will now more reliably detect invalid inputs (e.g. greater than the modulus).
  334. -- The padding method for RSA is more clearly documented. Namely if you want to encrypt/sign something of length
  335. N then your modulus must be of length 1+3N. So to sign a message with say SHA-384 [48 bytes] you need a
  336. 145 byte (1160 bits) modulus. This is all in the manual now.
  337. -- Added build option CLEAN_STACK which will allow you to choose whether you want to clean the stack or not after every
  338. cipher/hash call
  339. -- Sped up the hash "process()" functions by not copying one byte at a time.
  340. ++ (added just after I uploaded...)
  341. MD4 process() now handles input buffers > 64 bytes
  342. Aug 1st, 2002
  343. v0.56 -- Cleaned up the comments in the Blowfish code.
  344. -- Oh yeah, in v0.55 I made all of the descriptor elements constant. I just forgot to mention it.
  345. -- fixed a couple of places where descriptor indexes were tested wrong. Not a huge bug but now its harder
  346. to mess up.
  347. -- Added the SAFER [64-bit block] ciphers K64, SK64, K128 and SK128 to the library.
  348. -- Added the RC2 block cipher to the library.
  349. -- Changed the SAFER define for the SAFER+ cipher to SAFERP so that the new SAFER [64-bit] ciphers
  350. can use them with less confusion.
  351. July 29th, 2002
  352. v0.55 -- My god stupid Blowfish has yet again been fixed. I swear I hate that cipher. Next bug in it and boom its out of the
  353. library. Use AES or something else cuz I really hate Blowfish at this stage....
  354. -- Partial PKCS support [hint DONT USE IT YET CUZ ITS UNTESTED!]
  355. July 19th, 2002
  356. v0.54 -- Blowfish now conforms to known test vectors. Silly bad coding tom!
  357. -- RC5/RC6/Serpent all have more test vectors now [and they seemed to have been working before]
  358. July 18th, 2002
  359. v0.53 -- Added more test vectors to the blowfish code just for kicks [and they are const now too :-)]
  360. -- added prng/hash/cipher is_valid functions and used them in all of the PK code so you can't enter the code
  361. with an invalid index ever now.
  362. -- Simplified the Yarrow code once again :-)
  363. July 12th, 2002
  364. v0.52 -- Fixed a bug in MD4 where the hash descriptor ID was the same as SHA-512. Now MD4 will work with
  365. all the routines...
  366. -- Fixed the comments in SHA-512 to be a bit more meaningful
  367. -- In md4 I made the PADDING array const [again to store it in ROM]
  368. -- in hash_file I switched the constant "512" to "sizeof(buf)" to be a bit safer
  369. -- in SHA-1's test routine I fixed the string literal to say SHA-1 not sha1
  370. -- Fixed a logical error in the CTR code which would make it skip the first IV value. This means
  371. the CTR code from v0.52 will be incompatible [binary wise] with previous releases but it makes more
  372. sense this way.
  373. -- Added {} braces for as many if/for/blocks of code I could find. My rule is that every for/if/while/do block
  374. must have {} braces around it.
  375. -- made the rounds table in saferp_setup const [again for the ROM think about the ROM!]
  376. -- fixed RC5 since it no longer requires rc5 to be registered in the lib. It used to since the descriptors used to
  377. be part of the table...
  378. -- the packet.c code now makes crypt_error literal string errors when an error occurs
  379. -- cleaned up the SAFER+ key schedule to be a bit easier to read.
  380. -- fixed a huge bug in Twofish with the TWOFISH_SMALL define. Because I clean the stack now I had
  381. changed the "g_func()" to be called indirectly. I forgot to actually return the return of the Twofish
  382. g_func() function which caused it not to work... [does now :-)]
  383. July 11th, 2002
  384. v0.51 -- Fixed a bug in SHA512/384 code for multi-block messages.
  385. -- Added more test vectors to the SHA384/512 and TIGER hash functions
  386. -- cleaned up the hash done routines to make more sense
  387. July 10th, 2002
  388. v0.50 -- Fixed yarrow.c so that the cipher/hash used would be registered. Also fixed
  389. a bug where the SAFER+ name was "safer" but should have been "safer+".
  390. -- Added an element to the hash descriptors that gives the size of a block [sent into the compressor]
  391. -- Cleaned up the support for HMAC's
  392. -- Cleaned up the test vector routines to make the test vector data const. This means on some platforms it will be
  393. placed in ROM not RAM now.
  394. -- Added MD4 code submited by Dobes Vandermeer ([email protected])
  395. -- Added "burn_stack" function [idea taken from another source of crypto code]. The idea is if a function has
  396. alot of variables it will clean up better. Functions like the ecb serpent and twofish code will now have their
  397. stacks cleaned and the rest of the code is getting much more straightforward.
  398. -- Added a hashing demo by Daniel Richards ([email protected])
  399. -- I (Tom) modified some of the test vector routines to use more vectors ala Dobes style.
  400. For example, the MD5/SHA1 code now uses all of the test vectors from the RFC/FIPS spec.
  401. -- Fixed the register/unregister functions to properly report errors in crypt_error
  402. -- Correctly updated yarrow code to remove a few unused variables.
  403. -- Updated manual to fix a few erroneous examples.
  404. -- Added section on Hash based Message Authentication Codes (HMAC) to the manual
  405. June 19th, 2002
  406. v0.46 -- Added in HMAC code from Dobes Vandermeer ([email protected])
  407. June 8th, 2002
  408. v0.45 -- Fixed bug in rc5.c where if you called rc5_setup() before registering RC5 it would cause
  409. undefined behaviour.
  410. -- Fixed mycrypt_cfg.h to eliminate the 224 bit ECC key.
  411. -- made the "default" makefile target have depends on mycrypt.h and mycrypt_cfg.h
  412. Apr 4th, 2002
  413. v0.44 -- Fixed bug in ecc.c::new_point() where if the initial malloc fails it would not catch it.
  414. Mar 22nd, 2002
  415. v0.43 -- Changed the ZLIB code over to the 1.1.4 code base to avoid the "double free" bug.
  416. -- Updated the GCC makefile not to use -O3 or -funroll-loops
  417. -- Version tag in mycrypt.h has been updated :-)
  418. Mar 10th, 2002
  419. v0.42 -- The RNG code can now use /dev/urandom before trying /dev/random (J. Klapste)
  420. Mar 3rd, 2002
  421. v0.41 -- Added support to link and use ciphers at compile time. This can greatly reduce the code size!
  422. -- Added a demo to show off how small an application can get... 46kb!
  423. -- Disastry pointed out that Blowfish is supposed to be high endian.
  424. -- Made registry code for the PRNGs as well [now the smallest useable link is 43kb]
  425. Feb 11th, 2002
  426. v0.40 -- RSA signatures use [and check for] fixed padding scheme.
  427. -- I'm developing in Linux now :-)
  428. -- No more warnings from GCC 2.96
  429. Feb 5th, 2002
  430. v0.39 -- Updated the XTEA code to work in accordance with the XTEA design
  431. January 24th, 2002
  432. v0.38 -- CFB and OFB modes can now handle blocks of variable size like the CTR code
  433. -- Wrote a wrapper around the memory compress functions in Zlib that act like the functions
  434. in the rest of my crypto lib
  435. January 23rd, 2002
  436. v0.37 -- Added support code so that if a hash size and key size for a cipher don't match up they will
  437. use the next lower key supported. (mainly for the PK code). So you can now use SHA-1 with
  438. Twofish, etc...
  439. -- Added more options for Twofish. You can now tell it to use precomputed sboxes and MDS multiplications
  440. This will speed up the TWOFISH_SMALL implementation by increasing the code size by 1024 bytes.
  441. -- Fixed a bug in prime.c that would not use the correct table if you undefined SMALL_PRIME_TAB
  442. -- Fixed all of the PK packet code to use the same header format [see packet.c]. This makes the PK code
  443. binary wise incompatible with previous releases while the API has not changed at all.
  444. January 22nd, 2002
  445. v0.36 -- Corrections to the manual
  446. -- Made a modification to Twofish which lets you build a "small ram" variant. It requires
  447. about 190 bytes of ram for the key storage compared to the 4,200 bytes the normal
  448. variant requires.
  449. -- Reduced the stack space used in all of the PK routines.
  450. January 19th, 2002
  451. v0.35 -- If you removed the first hash or cipher from the library it wouldn't return an error if
  452. you used an ID=0 [i.e blowfish or sha256] in any routine. Now it checks for that and will
  453. return an error like it should
  454. -- Merged in new routines from Clay Culver. These routines are for the PK code so you can easily
  455. encode a symmetric key for multiple recipients.
  456. -- Made the ecc and DH make_key() routines make secret keys of the same size as the keysize listed.
  457. Originally I wanted to ensure that the keys were smaller than the order of the field used
  458. However, the bias is so insignifcant using full sizes. For example, with a ECC-192 key the order
  459. is about 2^191.99, so instead I rounded down and used a 184-bit secret key. Now I simply use a full 192-bit
  460. key the code will work just the same except that some 192-bit keys will be duplicates which is not a big
  461. deal since 1/2^192 is a very small bias!
  462. -- Made the configuration a bit simpler and more exacting. You can for example now select which DH or ECC
  463. key settings you wish to support without including the data for all other key settings. I put the #defines
  464. in a new file called "mycrypt_cfg.h"
  465. -- Configured "mpi-config.h" so its a bit more conservative with the memory required and code space used
  466. -- Jason Klapste submitted bug fixes to the yarrow, hash and various other issues. The yarrow code will now
  467. use what ever remaining hash/cipher combo is left [after you #undef them] at build time. He also suggested
  468. a fix to remove unused structures from the symmetric_key and hash_state unions.
  469. -- Made the CTR code handle variable length blocks better. It will buffer the encryption pad so you can
  470. encrypt messages any size block at a time.
  471. -- Simplified the yarrow code to take advantage of the new CTR code.
  472. -- Added a 4096-bit DH key setting. That took me about 36 hours to find!
  473. -- Changed the base64 routines to use a real base64 encoding scheme.
  474. -- Added in DH and ECC "encrypt_key()" functions. They are still rather "beta"ish.
  475. -- Added **Twofish** to the list of ciphers!
  476. January 18th, 2002
  477. v0.34 -- Added "sha512" to the list of hashes. Produces a 512-bit message digest. Note that with the current
  478. padding with the rsa_sign() function you cannot use sha512 with a key less than 1536 bits for signatures.
  479. -- Cleaned up the other hash functions to use the LOAD and STORE macros...
  480. January 17th, 2002
  481. v0.33 -- Made the lower limit on keysizes for RSA 1024 bits again because I realized that 768 bit keys wouldn't
  482. work with the padding scheme and large symmetric keys.
  483. -- Added information concerning the Zlib license to the manual
  484. -- Added a 3072-bit key setting for the DH code.
  485. -- Made the "find_xyz()" routines take "const char *" as per Clay Culver's suggestion.
  486. -- Fixed an embarassing typo in the manual concerning the hashes. Thank's Clay for finding it!
  487. -- Fixed rand_prime() so that it makes primes bigger than the setting you give. For example,
  488. if you want a 1024-bit prime it would make a 1023-bit one. Now it ensures that the prime
  489. it makes is always greater than 2^(8n) (n == bytes in prime). This doesn't have a huge
  490. impact on security but I corrected it just the same.
  491. -- Fixed the CTR routine to work on platforms where char != 8-bits
  492. -- Fixed sha1/sha256/md5/blowfish to not assume "unsigned long == 32-bits", Basically any operation with carries
  493. I "AND" with 0xFFFFFFFF. That forces only the lower 32-bits to have information in it. On x86 platforms
  494. most compilers optimize out the AND operation since its a nop.
  495. January 16th, 2002
  496. v0.32 -- Made Rijndael's setup function fully static so it is thread safe
  497. -- Svante Seleborg suggested a cosmetic style fixup for aes.c,
  498. basically to remove some of the #defines to clean it up
  499. -- Made the PK routines not export the ASCII version of the names of ciphers/hashes which makes
  500. the PK message formats *incompatible* with previous releases.
  501. -- Merge in Zlib :-)
  502. January 15th, 2002
  503. v0.31 -- The RSA routines can now use CRT to speed up decryption/signatures. The routines are backwards
  504. compatible with previous releases.
  505. -- Fixed another bug that Svante Seleborg found. Basically you could buffer-overrun the
  506. rsa_exptmod() function itself if you're not careful. That's fixed now. Fixed another bug in
  507. rsa_exptmod() where if it knows the buffer you passed is too small it wouldn't free all used
  508. memory.
  509. -- improved the readability of the PK import/export functions
  510. -- Added a fix to RSA.C by Clay Culver
  511. -- Changed the CONST64 macro for MSVC to use the "unsigned __int64" type, e.g. "ui64" instead of "i64".
  512. January 14th, 2002
  513. v0.30 -- Major change to the Yarrow PRNG code, fixed a bug that Eugene Starokoltsev found.
  514. Basically if you added entropy to the pool in small increments it could in fact
  515. cancel out. Now I hash the pool with the new data which is way smarter.
  516. January 12th, 2002
  517. v0.29 -- Added MPI code written by Svante Seleborg to the library. This will make the PK code much
  518. easier to follow and debug. Actually I've already fixed a memory leak in dh_shared_secret().
  519. -- Memory leaks found and correct in all three PK routines. The leaks would occur when a bignum
  520. operation fails so it wouldn't normally turn up in the course of a program
  521. -- Fixed bugs in dh_key_size and ecc_key_size which would return garbage for invalid key idx'es
  522. January 11th, 2002
  523. v0.28 -- Cleaned up some code so that it doesn't assume "char == 8bits". Mainly SAFER+ has been
  524. changed.
  525. -- ***HUGE*** changes in the PK code. I check all return values in the bignum code so if there
  526. are errors [insufficient memory, etc..] it will be reported. This makes the code fairly more
  527. robust and likely to catch any errors.
  528. -- Updated the is_prime() function to use a new prototype [it can return errors now] and it also
  529. does trial divisions against more primes before the Rabin Miller steps
  530. -- Added OFB, CFB and ECB generic wrappers for the symmetric ciphers to round out the implementations.
  531. -- Added Xtea to the list of ciphers, to the best of my ability I have verified this implementation.
  532. I should note that there is not alot of concrete information about the cipher. "Ansi C" versions
  533. I found did not address endianess and were not even portable!. This code is portable and to the
  534. best of my knowledge implements the Xtea algorithm as per the [short] X-Tea paper.
  535. -- Reformated the manual to include the **FULL** source code optimized to be pritable.
  536. January 9th, 2002
  537. v0.27 -- Changed the char constants to numerical values. It is backwards compatible and should work on
  538. platforms where 'd' != 100 [for example].
  539. -- Made a change to rand_prime() which takes the input length as a signed type so you can pass
  540. a negative len to get a "3 mod 4" style prime... oops
  541. -- changed the MSVC makefile to build with a warning level of three, no warnings!
  542. January 8th, 2002
  543. v0.26 -- updated SHA-256 to use ROR() for a rotate so 64-bit machines won't corrupt
  544. the output
  545. -- Changed #include <> to #include "" for local .h files as per Richard Heathfields' suggestions.
  546. -- Fixed bug in MPI [well bug in MSVC] that compiled code incorrectly in mp_set_int()
  547. I added a work around that catches the error and continues normally.
  548. January 8th, 2002
  549. v0.25 -- Added a stupid define so MSVC 6.00 can build the library.
  550. -- Big thanks to sci.crypt and "Ajay K. Agrawal" for helping me port this to MSVC
  551. January 7th, 2002
  552. v0.24 -- Sped up Blowfish by unrolling and removing the swaps.
  553. -- Made the code comply with more traditional ANSI C standards
  554. Should compile with MSVC with less errors
  555. -- moved the demos and documentation into their own directories
  556. so you can easily build the library with other tool chains
  557. by compiling the files in the root
  558. -- converted functions with length of outputs to use
  559. "unsigned long" so 16-bit platforms will like this library more.
  560. January 5th, 2002
  561. v0.23 -- Fixed a small error in the MPI config it should build fine anywhere.
  562. January 4th, 2002
  563. v0.22 -- faster gf_mul() code
  564. -- gf_shl() and gf_shr() are safe on 64-bit platforms now
  565. -- Fixed an error in the hashes that Brian Gladman found.
  566. Basically if the message has exactly 56 bytes left to be
  567. compressed I handled them incorrectly.
  568. January 4th, 2002
  569. v0.21 -- sped up the ECC code by removing redundant divisions in the
  570. point add and double routines. I also extract the bits more
  571. efficiently in "ecc_mulmod()" now.
  572. -- sped up [and documented] the rand_prime() function. Now it just
  573. makes a random integer and increments by two until a prime is found
  574. This is faster since it doesn't require alot of calls to the PRNG and
  575. it doesn't require loading huge integers over and over. rand_prime()
  576. can also make primes congruent to 3 mod 4 [i.e for a blum integer]
  577. -- added a gf_sqrt() function that finds square roots in a GF(2^w) field
  578. -- fixed a bug in gf_div() that would return the wrong results if the divisor had a greator
  579. divisor than the dividend.
  580. January 4th, 2002
  581. v0.20 -- Added the fixed MPI back in so RSA and DH are much faster again
  582. v0.19 -- Updated the manual to reflect the fact that Brian Gladman wrote the AES and Serpent code.
  583. -- DH, ECC and RSA signature/decryption functions check if the key is private
  584. -- new DH signature/verification code works just like the RSA/ECC versions
  585. January 3rd, 2002
  586. v0.18 -- Added way more comments to each .C file
  587. -- fixed a bug in cbc_decrypt(pt, ct, key) where pt == ct [i.e same buffer]
  588. -- fixed RC5 so it reads the default rounds out of the cipher_descriptor table
  589. -- cleaned up ecc_export()
  590. -- Cleaned up dh_import() and ecc_import() which also perform more
  591. error checking now
  592. -- Fixed a serious flaw in rsa_import() with private keys.
  593. January 2nd, 2002
  594. v0.17 -- Fixed a bug in the random prime generator that fixes the wrong bits to one
  595. -- ECC and DH code verify that the moduli and orders are in fact prime. That
  596. slows down the test routines alot but what are you gonna do?
  597. -- Fixed a huge bug in the mp_exptmod() function which incorrectly calculates g^x mod p for some
  598. values of p. I replaced it with a slow function. Once the author of MPI fixes his faster routine
  599. I will switch back.
  600. January 1st, 2002 [whoa new year!]
  601. v0.16 -- Improved GF division code that is faster.
  602. -- documented the GF code
  603. December 31st, 2001
  604. v0.15 -- A 1792-bit and 2048-bit DH setting was added. Took me all night to
  605. find a 1792 and 2048-bit strong prime but what the heck
  606. -- Library now has polynomial-basis GF(2^w) routines I wrote myself. Can be used to perform
  607. ECC over GF(2^w) later on....
  608. -- Fixed a bug with the defines that allows it to build in windows
  609. December 30th, 2001
  610. v0.14 -- Fixed the xxx_encrypt() packet routines to make an IV of appropriate size
  611. for the cipher used. It was defaulting to making a 256-bit IV...
  612. -- base64_encode() now appends a NULL byte, um "duh" stupid mistake now fixed...
  613. -- spell checked the manual again... :-)
  614. December 30th, 2001
  615. v0.13 -- Switching back to older copy of MPI since it works! arrg..
  616. -- Added sign/verify functions for ECC
  617. -- all signature verification routines default to invalid signatures.
  618. -- Changed all calls to memset to zeromem. Fixed up some buffer problems
  619. in other routines. All calls to zeromem let the compiler determine the size
  620. of the data to wipe.
  621. December 29th, 2001
  622. v0.12 -- Imported a new version of MPI [the bignum library] that should
  623. be a bit more stable [if you want to write your own bignum
  624. routines with the library that is...]
  625. -- Manual has way more info
  626. -- hash_file() clears stack now [like it should]
  627. -- The artificial cap on the hash input size of 2^32 bits has been
  628. removed. Basically I was too lazy todo 64-bit math before
  629. [don't ask why... I can't remember]. Anyways the hashes
  630. support the size of 2^64 bits [if you ever use that many bits in a message
  631. that's just wierd...]
  632. -- The hashes now wipe the "hash_state" after the digest is computed. This helps
  633. prevent the internal state of the hash being leaked accidently [i.e stack problems]
  634. December 29th, 2001
  635. v0.11 -- Made #define's so you can trim the library down by removing
  636. ciphers, hashs, modes of operation, prngs, and even PK algorithms
  637. For example, the library with rijndael+ctr+sha1+ECC is 91KB compared
  638. to the 246kb the full library takes.
  639. -- Added ECC packet routines for encrypt/decrypt/sign/verify much akin to
  640. the RSA packet routines.
  641. -- ECC now compresses the public key, a ECC-192 public key takes 33 bytes
  642. for example....
  643. December 28th, 2001
  644. v0.10 -- going to restart the manual from scratch to make it more
  645. clear and professional
  646. -- Added ECC over Z/pZ. Basically provides as much as DH
  647. except its faster since the numbers are smaller. For example,
  648. A comparable 256-bit ECC key provides as much security as expected
  649. from a DH key over 1024-bits.
  650. -- Cleaned up the DH code to not export the symbol "sets[]"
  651. -- Fixed a bug in the DH code that would not make the correct size
  652. random string if you made the key short. For instance if you wanted
  653. a 512-bit DH key it would make a 768-bit one but only make up 512-bits
  654. for the exponent... now it makes the full 768 bits [or whatever the case
  655. is]
  656. -- Fixed another ***SERIOUS*** bug in the DH code that would default to 768-bit
  657. keys by mistake.
  658. December 25th, 2001
  659. v0.09 -- Includes a demo program called file_crypt which shows off
  660. how to use the library to make a command line tool which
  661. allows the user to encode/decode a file with any
  662. hash (on the passphrase) and cipher in CTR mode.
  663. -- Switched everything to use typedef's now to clear up the code.
  664. -- Added AES (128/192 and 256 bit key modes)
  665. December 24th, 2001
  666. v0.08 -- fixed a typo in the manual. MPI stores its bignums in
  667. BIG endian not little.
  668. -- Started adding a RNG to the library. Right now it tries
  669. to open /dev/random and if that fails it uses either the
  670. MS CSP or the clock drift RNG. It also allows callbacks
  671. since the drift RNG is slow (about 3.5 bytes/sec)
  672. -- the RNG can also automatically setup a PRNG as well now
  673. v0.07 -- Added basic DH routines sufficient to
  674. negotiate shared secrets
  675. [see the manual for a complete example!]
  676. -- Fixed rsa_import to detect when the input
  677. could be corrupt.
  678. -- added more to the manual.
  679. December 22nd, 2001
  680. v0.06 -- Fixed some formatting errors in
  681. the hash functions [just source code cleaning]
  682. -- Fixed a typo in the error message for sha256 :-)
  683. -- Fixed an error in base64_encode() that
  684. would fail to catch all buffer overruns
  685. -- Test program times the RSA and symmetric cipher
  686. routines for kicks...
  687. -- Added the "const" modifier to alot of routines to
  688. clear up the purpose of each function.
  689. -- Changed the name of the library to "TomCrypt"
  690. following a suggestion from a sci.crypt reader....
  691. v0.05 -- Fixed the ROL/ROR macro to be safe on platforms
  692. where unsigned long is not 32-bits
  693. -- I have added a bit more to the documentation
  694. manual "crypt.pdf" provided.
  695. -- I have added a makefile for LCC-Win32. It should be
  696. easy to port to other LCC platforms by changing a few lines.
  697. -- Ran a spell checker over the manual.
  698. -- Changed the header and library from "crypt" to "mycrypt" to not
  699. clash with the *nix package "crypt".
  700. v0.04 -- Fixed a bug in the RC5,RC6,Blowfish key schedules
  701. where if the key was not a multiple of 4 bytes it would
  702. not get loaded correctly.
  703. December 21st, 2001
  704. v0.03 -- Added Serpent to the list of ciphers.
  705. v0.02 -- Changed RC5 to only allow 12 to 24 rounds
  706. -- Added more to the manual.
  707. v0.01 -- We will call this the first version.