Commit | Line | Data |
3357b1b1 |
1 | 2001-03-13 Gisle Aas <gisle@ActiveState.com> |
2 | |
3 | Release 2.13 |
4 | |
5 | Moved all other Digest:: modules out of the Digest-MD5 dist. |
6 | |
7 | |
8 | |
9 | 2000-09-18 Gisle Aas <gisle@ActiveState.com> |
10 | |
11 | Release 2.12 |
12 | |
13 | Avoid pointer cast warning for machines with bigger ints |
14 | than pointers. Patch by Robin Barker <rmb1@cise.npl.co.uk>. |
15 | |
16 | |
17 | |
18 | 2000-08-19 Gisle Aas <gisle@ActiveState.com> |
19 | |
20 | Release 2.11 |
21 | |
22 | The fallback code introduced in 2.10 did only work for |
23 | perl-5.6.0. It should now for for perl5.004 and 5.005 |
24 | as well. Patch by Ville Skyttä <ville@office.popsystems.com>. |
25 | |
26 | |
27 | |
28 | 2000-08-18 Gisle Aas <gisle@ActiveState.com> |
29 | |
30 | Release 2.10 |
31 | |
32 | Digest::MD5 will now try to fallback to the pure perl |
33 | implementation of Digest::Perl::MD5 if bootstrap fails. |
34 | |
35 | Added a bit internal paranoia about casting the IV |
36 | in the Digest::MD5 object to the MD5_CTX* pointer. |
37 | |
38 | |
39 | |
40 | 1999-08-06 Gisle Aas <gisle@aas.no> |
41 | |
42 | Release 2.09 |
43 | |
44 | Documentation update. |
45 | |
46 | |
47 | |
48 | 1999-07-28 Gisle Aas <gisle@aas.no> |
49 | |
50 | Release 2.08 |
51 | |
52 | The addfile() methods could trigger a core dump when passed |
53 | a filehandle that had failed to open. |
54 | |
55 | |
56 | |
57 | 1999-04-26 Gisle Aas <gisle@aas.no> |
58 | |
59 | Release 2.07 |
60 | |
61 | The Digest::SHA1 module failed on some 64-bit systems, because I |
62 | assumed there was a correspondence between the U32 size and |
63 | BYTEORDER. This version use 'unsigned long' as Uwe's original |
64 | SHA module did. |
65 | |
66 | The module should now work better when liked statically with perl, |
67 | because we now use a safer module-loaded test in Digest.pm. |
68 | |
69 | Assume we know the outcome of the alignment test on VMS. Patch by |
70 | Chuck Lane <lane@duphy4.physics.drexel.edu> |
71 | |
72 | |
73 | |
74 | 1999-03-26 Gisle Aas <gisle@aas.no> |
75 | |
76 | Release 2.06 |
77 | |
78 | Avoid LONG and BYTE types in SHA.xs as they was in conflict |
79 | with similar definitions in <winnt.h>. |
80 | |
81 | Patch by Marko Asplund <aspa@hip.fi> to make the the alignment |
82 | test program link successfully with sfio-perl. |
83 | |
84 | Fixed a typo in MD5.xs that might have affected 64-bit systems. |
85 | Spotted by Nick Ing-Simmons |
86 | |
87 | |
88 | |
89 | 1999-03-15 Gisle Aas <gisle@aas.no> |
90 | |
91 | Release 2.05 |
92 | |
93 | Included Digest::SHA1 based on Uwe Hollerbach's SHA module. |
94 | |
95 | |
96 | |
97 | 1999-03-05 Gisle Aas <gisle@aas.no> |
98 | |
99 | Release 2.04 |
100 | |
101 | Avoid the -o option when compiling alignment test program |
102 | for Win32 as suggested by Gurusamy Sarathy. |
103 | |
104 | DEC Compiler bug workaround. Contributed by D Roland Walker |
105 | <walker@ncbi.nlm.nih.gov> |
106 | |
107 | Having references to a local variable called "na" was not |
108 | very safe either. Some older versions of Perl can apparently |
109 | macroize this into something completely different. |
110 | |
111 | |
112 | |
113 | 1999-02-27 Gisle Aas <gisle@aas.no> |
114 | |
115 | Release 2.03 |
116 | |
117 | Patch from Christopher J. Madsen <chris_madsen@geocities.com> that |
118 | should help getting the u32align test program to compile with |
119 | Visual C++ 5 on Windows NT. |
120 | |
121 | Got rid of references to PL_na. |
122 | |
123 | |
124 | |
125 | 1999-01-31 Gisle Aas <gisle@aas.no> |
126 | |
127 | Release 2.02 |
128 | |
129 | Added a hints file as workaround for an IRIX compiler bug. |
130 | Contributed by D Roland Walker <walker@ncbi.nlm.nih.gov>. |
131 | |
132 | Note that the rfc2202 test can still fail on some DEC Alpha, |
133 | because of a compiler bug that affects the perl 'x' operator. |
134 | The Digest:: modules should work and be safe to install anyway. |
135 | |
136 | |
137 | |
138 | 1998-12-18 Gisle Aas <aas@sn.no> |
139 | |
140 | Release 2.01 |
141 | |
142 | Some casts and tweaks to make picky compilers more happy. |
143 | |
144 | |
145 | |
146 | 1998-11-04 Gisle Aas <aas@sn.no> |
147 | |
148 | Release 2.00. |
149 | |
150 | Taken out Digest::SHA1 as this module will be provided from Uwe |
151 | Hollerbach later. |
152 | |
153 | Some tweaks to MD2.xs and MD5.xs since "na" disappeared in |
154 | perl5.005_53 |
155 | |
156 | |
157 | |
158 | 1998-10-30 Gisle Aas <aas@sn.no> |
159 | |
160 | Release 1.99_60 |
161 | |
162 | The 1.99_59 release introduced compilation problems for big-endian |
163 | systems with free U32 alignment. Bug reported, and fix suggested |
164 | by Paul J. Schinder <schinder@pobox.com>. |
165 | |
166 | |
167 | |
168 | 1998-10-28 Gisle Aas <aas@sn.no> |
169 | |
170 | Release 1.99_59 |
171 | |
172 | Makefile.PL will run a test program to find out if U32 values can |
173 | be aligned anywhere. This hopefully cures the core dumps reported |
174 | on Solaris and other big endian systems. Thanks to Graham Barr for |
175 | debugging this. |
176 | |
177 | |
178 | |
179 | 1998-10-28 Gisle Aas <aas@sn.no> |
180 | |
181 | Release 1.99_58 |
182 | |
183 | Should be very close to a 2.00 release now. Need some success |
184 | reports from people running on big-endian machines first I think. |
185 | |
186 | Added a Digest::MD2 implementation. |
187 | |
188 | Wrote Digest.pm documentation. This define the interface that all |
189 | Digest:: modules should provide. |
190 | |
191 | Avoided some code duplication in MD5.xs |
192 | |
193 | Fixed typo, that prevented Digest::SHA1::sha1_base64() from working. |
194 | |
195 | |
196 | |
197 | 1998-10-27 Gisle Aas <aas@sn.no> |
198 | |
199 | Release 1.99_57 |
200 | |
201 | Rewritten most of the MD5 C code to make it real fast (especially |
202 | on little-endian machines without alignment restrictions for U32). |
203 | Compared to MD5-1.7 we can process files 4 times as fast and we |
204 | digest small stuff in memory 7 times faster. I came to these |
205 | conclusions after these tests (gcc -O2, i586, Linux): |
206 | |
207 | First tested calculation of the digest of a 31 MB file, using |
208 | perl -le 'print Digest::MD5->new->addfile(*STDIN)->hexdigest' |
209 | and similar stuff: |
210 | |
211 | MD5-1.7: 21.06s |
212 | Digest::MD5-1.99_57: 5.23s |
213 | md5sum (GNU textutils): 4.90s |
214 | |
215 | As you can see, we do nearly as good as the md5sum program. I |
216 | think the reason we don't beat md5sum is that perl always insist on |
217 | loading extra modules like Config.pm, Carp.pm, strict.pm, vars.pm, |
218 | AutoLoader.pm and DynaLoader.pm. When I simply wrapped the MD5.xs |
219 | hasher code in a C program I managed to process the file in 4.68s. |
220 | |
221 | Then we calculated the digest of the same 6 byte sting, 20000 |
222 | times: |
223 | |
224 | MD5-1.7: 11.81s |
225 | Digest::MD5-1.99_57: 1.68s |
226 | |
227 | Digest::MD5 benefit from making this into a plain procedure call |
228 | instead of a static method call. |
229 | |
230 | |
231 | Other changes in this release are: |
232 | |
233 | Documentation update |
234 | |
235 | Internal MD5.xs cleanup. |
236 | |
237 | $md5->digest will automatically reset now. |
238 | |
239 | Digest::HMAC methods add() and addfile() did not return the |
240 | corret object. |
241 | |
242 | Added Digest.pm loading module. I am not sure this is a good idea. |
243 | |
244 | Added Digest::SHA1 and Digest::HMAC_SHA1 module. The Digest::SHA1 |
245 | module is just a wrapper around SHA.pm. I hope to get the author |
246 | of SHA.pm to move his module to the Digest:: category. |
247 | |
248 | |
249 | |
250 | 1998-10-25 Gisle Aas <aas@sn.no> |
251 | |
252 | Release 1.99_56 |
253 | |
254 | Fix memcpy_byteswap() function in MD5.xs. Must be careful with |
255 | htovl() as it might evaluate its arguments more than once. |
256 | |
257 | |
258 | |
259 | 1998-10-25 Gisle Aas <aas@sn.no> |
260 | |
261 | Release 1.99_55 |
262 | |
263 | Grahams HMAC_MD5.pm splitted into two modules. Digest::HMAC and |
264 | Digest::HMAC_MD5. Also provide functional interface. Documentation |
265 | is still lacking. |
266 | |
267 | Included RFC 2202 based test for HMAC-MD5. |
268 | |
269 | |
270 | |
271 | 1998-10-24 Gisle Aas <aas@sn.no> |
272 | |
273 | Release 1.99_54 |
274 | |
275 | Included HMAC_MD5.pm, contributed by Graham Barr <gbarr@ti.com>. |
276 | |
277 | I have a hard time to make up my mind :-) md5_bin() renamed back |
278 | to md5(). Functions are not exported by default any more. |
279 | |
280 | Try to Encode/Decode with memcpy_byteswap for 32-bit big-endian |
281 | machines. |
282 | |
283 | |
284 | |
285 | 1998-10-23 Gisle Aas <aas@sn.no> |
286 | |
287 | Release 1.99_53 |
288 | |
289 | Renamed core module as Digest::MD5. Leave a MD5.pm stub for |
290 | legacy code. |
291 | |
292 | The md5() function renamed as md5_bin(). |
293 | |
294 | The constructor, Digest::MD5->new, no longer takes any extra |
295 | arguments. |
296 | |
297 | Added some new tests. |
298 | |
299 | Updated the documentation. |
300 | |
301 | $md5->b64digest implemented with same base64 encoder as md5_base64. |
302 | |
303 | |
304 | |
305 | 1998-10-23 Gisle Aas <aas@sn.no> |
306 | |
307 | Release 1.99_52 |
308 | |
309 | Patch from Graham Barr which make it work for big-endian machines |
310 | again. |
311 | |
312 | |
313 | |
314 | 1998-10-22 Gisle Aas <aas@sn.no> |
315 | |
316 | Release 1.99_51 |
317 | |
318 | The MD5 class is now subclassable. |
319 | |
320 | The add() and addfile() methods now return $self. |
321 | |
322 | The reset() method is just an alias for new(). |
323 | |
324 | The constructor (MD5->new) now takes optional arguments which are |
325 | automatically added. It means that we can now write: |
326 | |
327 | MD5->new($data)->hexdigest; |
328 | |
329 | New $md5->b64digest method. |
330 | |
331 | New functions that are exported on request: md5, md5_hex, md5_base64 |
332 | |
333 | Included RFC 1321 |
334 | |
335 | Barely started to update the documentation. |
336 | |
337 | |
338 | |
339 | 1998-10-22 Gisle Aas <aas@sn.no> |
340 | |
341 | Release 1.99_50 |
342 | |
343 | Much better performance (more than twice as fast now). Mostly |
344 | because we use Copy/Zero instead of the original MD5_memcpy and |
345 | MD5_memset functions. |
346 | |
347 | The addfile() and hexdigest() methods are now XS implemented. |
348 | |
349 | All RSA functions now included in MD5.xs and made static. |
350 | |
351 | Use perl's Copy/Zero. |
352 | |
353 | Random cleanup, simplifications and reformatting. |
354 | Merged things better with the perl configuration. |
355 | |
356 | |
357 | |
358 | Neil Winton's versions below: |
359 | |
360 | |
361 | *** 96/06/20 Version 1.7 |
362 | |
363 | MD5 is now completely 64-bit clean (I hope). The basic MD5 code uses |
364 | 32-bit quantities and requires a typedef UINT4 to be defined in |
365 | global.h. Perl configuration data (the value of BYTEORDER) is used to |
366 | determine if unsigned longs have 4 or 8 bytes. On 64-bit platforms (eg |
367 | DEC Alpha) then it assumes that "unsigned int" will be a 32-bit type. |
368 | If this is incorrect then adding -DUINT4_IS_LONG to the DEFINES line in |
369 | Makefile.PL will override this. |
370 | |
371 | On some machines (at least Cray that I know of) there is no 32-bit |
372 | integer type. In this case defining TRUNCATE_UINT4 (which is done |
373 | automatically for a Cray) will ensure that 64-bit values are masked |
374 | down to 32 bits. I have done my best to test this but without easy |
375 | access to a true 64-bit machine I can not totally guarantee it (unless |
376 | anyone wants to lend me a spare Cray :-) |
377 | |
378 | There is one remaining limitation for 64-bit enabled processors. The |
379 | amount of data passed to any single call to the underlying MD5 |
380 | routines is limited to (2^32 - 1) bytes -- that's 4 gigabytes. I'm |
381 | sorry if that's a real problem for you ... |
382 | |
383 | And finally, a minor complilation warning (unsigned char * used with |
384 | function having char * prototype) has also been eliminated. |
385 | |
386 | *** 96/04/09 Version 1.6 |
387 | |
388 | Re-generated module framework using h2xs to pick up the latest module |
389 | conventions for versions etc. You can now say "use MD5 1.6;" and things |
390 | should work correctly. MD5.pod has been integrated into MD5.pm and |
391 | CHANGES renamed to Changes. There is a fairly comprehensive test.pl |
392 | which can be invoked via "make test". There are no functional changes |
393 | to the MD5 routines themselves. |
394 | |
395 | *** 96/03/14 Version 1.5.3 |
396 | |
397 | Fixed addfile method to accept type-glob references for the file-handle |
398 | (eg \*STDOUT). This is more consistent with other routines and is now the |
399 | recommended way of passing file-handles. The documentation now gives more |
400 | examples as to how the routines might be used. |
401 | |
402 | *** 96/03/12 Version 1.5.2 |
403 | |
404 | Minor fixes from Christopher J Madsen <madsen@computek.net> to provide |
405 | support for building on OS/2 (and to work arround a perl -w bug). |
406 | |
407 | Remove warning about possible difference between add('foo', 'bar') and |
408 | add('foobar'). This is not true (it may have been true in the earliest |
409 | version of the module but is no longer the case). |
410 | |
411 | *** 96/03/08 Version 1.5.1 |
412 | |
413 | Add CHANGES file to make it easier for people to figure out what has |
414 | been going on. (Meant to do this as part of 1.5) |
415 | |
416 | *** 96/03/05 Version 1.5 |
417 | |
418 | Add hash() and hexhash() methods at the suggestion/request of Gary |
419 | Howland <gary@kampai.euronet.nl> before inclusion in a wider library |
420 | of cryptography modules. |
421 | |
422 | *** 96/02/27 Version 1.4 |
423 | |
424 | Finally fixed the pesky Solaris dynamic loading bug. All kudos to Ken |
425 | Pizzini <kenp@spry.com>! |
426 | |
427 | *** 95/11/29 Version 1.3.1 |
428 | |
429 | Add explanations of current known problems. |
430 | |
431 | *** 95/06/02 Version 1.3 |
432 | |
433 | Fix problems with scope resolution in addfile() reported by |
434 | Jean-Claude Giese <Jean-Claude.Giese@loria.fr>. Basically ARGV is |
435 | always implicitly in package main while other filehandles aren't. |
436 | |
437 | *** 95/05/23 Version 1.2.1 |
438 | |
439 | [Changes pre 1.2.1 not recorded] |