Commit | Line | Data |
8be5f608 |
1 | 2003-10-09 Gisle Aas <gisle@ActiveState.com> |
2 | |
3 | Release 2.30 |
4 | |
5 | Some tweaks to make the module build on perl-5.004 and |
6 | perl-5.005 again. |
7 | |
8 | |
9 | |
10 | 2003-10-06 Gisle Aas <gisle@ActiveState.com> |
11 | |
12 | Release 2.29 |
13 | |
14 | Another try. Forgot to update the test checksums. |
15 | |
16 | |
17 | |
18 | 2003-10-06 Gisle Aas <gisle@ActiveState.com> |
19 | |
20 | Release 2.28 |
21 | |
22 | Fix minor documentation typo. |
23 | |
24 | |
25 | |
515b806d |
26 | 2003-08-04 Gisle Aas <gisle@ActiveState.com> |
27 | |
28 | Release 2.27 |
29 | |
30 | Avoid having to figure how to compile alignment test program |
31 | on MS-Windows by just assume free alignment as for i386. Source |
32 | builds on Windows was apparently broken. |
33 | |
34 | |
35 | |
1c9948bf |
36 | 2003-07-21 Gisle Aas <gisle@ActiveState.com> |
37 | |
38 | Release 2.26 |
39 | |
40 | Don't assume PerlIO_read() works like fread() even though |
41 | it was documented like that for perl 5.6. It returns negative |
42 | on read failure. |
43 | |
44 | Kill test #3 in t/badfile.t. I don't know a reliable way |
45 | to test read failures on a file handle. Seems better not to |
46 | test than to make many worry. |
47 | |
48 | |
49 | |
ac70dec1 |
50 | 2003-07-04 Gisle Aas <gisle@ActiveState.com> |
51 | |
52 | Release 2.25 |
53 | |
54 | The $md5->addfile method now croaks if it discovers |
55 | errors on the handle after reading from it. This should |
56 | make it more difficult to end up with the wrong digest |
57 | just because you are to lazy to check the error status |
58 | on your file handles after reading from them. |
59 | |
60 | Improved documentation. |
61 | |
62 | Sync up with bleadperl; even safer patchlevel include. |
63 | |
64 | |
65 | |
f05fc781 |
66 | 2003-03-09 Gisle Aas <gisle@ActiveState.com> |
67 | |
68 | Release 2.24 |
69 | |
70 | Don't let the $^W test get confused by lexical warnings. |
71 | |
72 | Sync up with bleadperl; safer patchlevel include. |
73 | |
74 | |
75 | |
cf0ec753 |
76 | 2003-01-18 Gisle Aas <gisle@ActiveState.com> |
77 | |
78 | Release 2.23 |
79 | |
80 | Override INSTALLDIRS for 5.8 as suggested by |
81 | Guido Ostkamp <Guido.Ostkamp@t-online.de>. |
82 | |
83 | |
84 | |
85 | 2003-01-04 Gisle Aas <gisle@ActiveState.com> |
f62a1bde |
86 | |
87 | Release 2.22. |
88 | |
89 | Added clone method. |
90 | Contributed by Holger Smolinski <holger@kunterbunt.bb.bawue.de> |
91 | |
92 | |
93 | |
9a03235d |
94 | 2002-12-27 Gisle Aas <gisle@ActiveState.com> |
95 | |
96 | Release 2.21 |
97 | |
98 | Minor tweaks sync up with bleadperl: |
99 | - VMS optimizer tweaks to the Makefile.PL |
100 | - MacOS support |
101 | - Added alignment test |
102 | |
103 | Added example to the MD5 POD that shows how to calculate the |
104 | digest of Unicode strings. |
105 | |
106 | |
107 | |
0dfa9f37 |
108 | 2002-05-05 Gisle Aas <gisle@ActiveState.com> |
109 | |
110 | Release 2.20 |
111 | |
112 | More synchronization with tweaks Jarkko have done to the |
113 | bleadperl test suite. This time various EBCDIC hacks. |
114 | |
115 | Outside PERL_CORE the md5-aaa.t test loaded the wrong version of |
116 | the module (and would fail if no previous Digest::MD5 was installed). |
117 | Patch by Mike Stok <mike@stok.co.uk> |
118 | |
119 | |
120 | |
5a046520 |
121 | 2002-05-01 Gisle Aas <gisle@ActiveState.com> |
122 | |
7e2b0cd5 |
123 | Release 2.19 |
124 | |
125 | One more test suite update from Jarkko to sync it |
126 | even better with bleadperl. |
127 | |
128 | |
129 | |
130 | 2002-05-01 Gisle Aas <gisle@ActiveState.com> |
131 | |
5a046520 |
132 | Release 2.18 |
133 | |
134 | Changes #12954 and #16173 from bleadperl. Documentation typo fix |
135 | and some signed/unsigned mismatches that Microsoft's C compiler |
136 | complained about. |
137 | |
138 | The EBCDIC-aware md5-aaa.t from bleadperl. |
139 | |
140 | |
141 | |
142 | 2002-04-25 Gisle Aas <gisle@ActiveState.com> |
143 | |
144 | Release 2.17 |
145 | |
146 | The SvPVbyte in perl-5.6.1 is buggy. Use the one from 5.7.3 |
147 | instead. |
148 | |
149 | Give warning if the function interface is used as instance |
150 | methods: $md5->md5_hex(). |
151 | |
152 | |
153 | |
db2a39d5 |
154 | 2001-09-07 Gisle Aas <gisle@ActiveState.com> |
155 | |
156 | Release 2.16 |
157 | |
158 | Sync up with the bleadperl version: |
8be5f608 |
159 | - use SvPVbyte() if available |
db2a39d5 |
160 | - fixes to make the code 'gcc -Wall'-clean |
161 | |
162 | |
163 | |
164 | 2001-08-27 Gisle Aas <gisle@ActiveState.com> |
165 | |
166 | Release 2.15 |
167 | |
8be5f608 |
168 | Avoid exit() in Makefile.PL and bleadperl redefinition of printf |
db2a39d5 |
169 | in the alignment test program. |
170 | Patch by Doug MacEachern <dougm@covalent.net>. |
171 | |
172 | |
173 | |
174 | 2001-07-18 Gisle Aas <gisle@ActiveState.com> |
175 | |
176 | Release 2.14 |
177 | |
178 | Try to warn if the functional interface is used as methods, |
179 | i.e. Digest::MD5->md5_hex("foo") will make noise if -w is |
180 | enabled. |
181 | |
182 | Document the missing padding for the base64 digests. |
183 | |
184 | If both XS bootstrap and locating Digest::Perl::MD5 fails |
8be5f608 |
185 | re-raise the original XS bootstrap exception. |
db2a39d5 |
186 | |
187 | |
188 | |
3357b1b1 |
189 | 2001-03-13 Gisle Aas <gisle@ActiveState.com> |
190 | |
191 | Release 2.13 |
192 | |
193 | Moved all other Digest:: modules out of the Digest-MD5 dist. |
194 | |
195 | |
196 | |
197 | 2000-09-18 Gisle Aas <gisle@ActiveState.com> |
198 | |
199 | Release 2.12 |
200 | |
201 | Avoid pointer cast warning for machines with bigger ints |
202 | than pointers. Patch by Robin Barker <rmb1@cise.npl.co.uk>. |
203 | |
204 | |
205 | |
206 | 2000-08-19 Gisle Aas <gisle@ActiveState.com> |
207 | |
208 | Release 2.11 |
209 | |
210 | The fallback code introduced in 2.10 did only work for |
211 | perl-5.6.0. It should now for for perl5.004 and 5.005 |
212 | as well. Patch by Ville Skyttä <ville@office.popsystems.com>. |
213 | |
214 | |
215 | |
216 | 2000-08-18 Gisle Aas <gisle@ActiveState.com> |
217 | |
218 | Release 2.10 |
219 | |
220 | Digest::MD5 will now try to fallback to the pure perl |
221 | implementation of Digest::Perl::MD5 if bootstrap fails. |
222 | |
223 | Added a bit internal paranoia about casting the IV |
224 | in the Digest::MD5 object to the MD5_CTX* pointer. |
225 | |
226 | |
227 | |
228 | 1999-08-06 Gisle Aas <gisle@aas.no> |
229 | |
230 | Release 2.09 |
231 | |
232 | Documentation update. |
233 | |
234 | |
235 | |
236 | 1999-07-28 Gisle Aas <gisle@aas.no> |
237 | |
238 | Release 2.08 |
239 | |
240 | The addfile() methods could trigger a core dump when passed |
241 | a filehandle that had failed to open. |
242 | |
243 | |
244 | |
245 | 1999-04-26 Gisle Aas <gisle@aas.no> |
246 | |
247 | Release 2.07 |
248 | |
249 | The Digest::SHA1 module failed on some 64-bit systems, because I |
250 | assumed there was a correspondence between the U32 size and |
251 | BYTEORDER. This version use 'unsigned long' as Uwe's original |
252 | SHA module did. |
253 | |
254 | The module should now work better when liked statically with perl, |
255 | because we now use a safer module-loaded test in Digest.pm. |
256 | |
257 | Assume we know the outcome of the alignment test on VMS. Patch by |
258 | Chuck Lane <lane@duphy4.physics.drexel.edu> |
259 | |
260 | |
261 | |
262 | 1999-03-26 Gisle Aas <gisle@aas.no> |
263 | |
264 | Release 2.06 |
265 | |
266 | Avoid LONG and BYTE types in SHA.xs as they was in conflict |
267 | with similar definitions in <winnt.h>. |
268 | |
269 | Patch by Marko Asplund <aspa@hip.fi> to make the the alignment |
270 | test program link successfully with sfio-perl. |
271 | |
272 | Fixed a typo in MD5.xs that might have affected 64-bit systems. |
273 | Spotted by Nick Ing-Simmons |
274 | |
275 | |
276 | |
277 | 1999-03-15 Gisle Aas <gisle@aas.no> |
278 | |
279 | Release 2.05 |
280 | |
281 | Included Digest::SHA1 based on Uwe Hollerbach's SHA module. |
282 | |
283 | |
284 | |
285 | 1999-03-05 Gisle Aas <gisle@aas.no> |
286 | |
287 | Release 2.04 |
288 | |
289 | Avoid the -o option when compiling alignment test program |
290 | for Win32 as suggested by Gurusamy Sarathy. |
291 | |
292 | DEC Compiler bug workaround. Contributed by D Roland Walker |
293 | <walker@ncbi.nlm.nih.gov> |
294 | |
295 | Having references to a local variable called "na" was not |
296 | very safe either. Some older versions of Perl can apparently |
297 | macroize this into something completely different. |
298 | |
299 | |
300 | |
301 | 1999-02-27 Gisle Aas <gisle@aas.no> |
302 | |
303 | Release 2.03 |
304 | |
305 | Patch from Christopher J. Madsen <chris_madsen@geocities.com> that |
306 | should help getting the u32align test program to compile with |
307 | Visual C++ 5 on Windows NT. |
308 | |
309 | Got rid of references to PL_na. |
310 | |
311 | |
312 | |
313 | 1999-01-31 Gisle Aas <gisle@aas.no> |
314 | |
315 | Release 2.02 |
316 | |
317 | Added a hints file as workaround for an IRIX compiler bug. |
318 | Contributed by D Roland Walker <walker@ncbi.nlm.nih.gov>. |
319 | |
320 | Note that the rfc2202 test can still fail on some DEC Alpha, |
321 | because of a compiler bug that affects the perl 'x' operator. |
322 | The Digest:: modules should work and be safe to install anyway. |
323 | |
324 | |
325 | |
326 | 1998-12-18 Gisle Aas <aas@sn.no> |
327 | |
328 | Release 2.01 |
329 | |
330 | Some casts and tweaks to make picky compilers more happy. |
331 | |
332 | |
333 | |
334 | 1998-11-04 Gisle Aas <aas@sn.no> |
335 | |
336 | Release 2.00. |
337 | |
338 | Taken out Digest::SHA1 as this module will be provided from Uwe |
339 | Hollerbach later. |
340 | |
341 | Some tweaks to MD2.xs and MD5.xs since "na" disappeared in |
342 | perl5.005_53 |
343 | |
344 | |
345 | |
346 | 1998-10-30 Gisle Aas <aas@sn.no> |
347 | |
348 | Release 1.99_60 |
349 | |
350 | The 1.99_59 release introduced compilation problems for big-endian |
351 | systems with free U32 alignment. Bug reported, and fix suggested |
352 | by Paul J. Schinder <schinder@pobox.com>. |
353 | |
354 | |
355 | |
356 | 1998-10-28 Gisle Aas <aas@sn.no> |
357 | |
358 | Release 1.99_59 |
359 | |
360 | Makefile.PL will run a test program to find out if U32 values can |
361 | be aligned anywhere. This hopefully cures the core dumps reported |
362 | on Solaris and other big endian systems. Thanks to Graham Barr for |
363 | debugging this. |
364 | |
365 | |
366 | |
367 | 1998-10-28 Gisle Aas <aas@sn.no> |
368 | |
369 | Release 1.99_58 |
370 | |
371 | Should be very close to a 2.00 release now. Need some success |
372 | reports from people running on big-endian machines first I think. |
373 | |
374 | Added a Digest::MD2 implementation. |
375 | |
376 | Wrote Digest.pm documentation. This define the interface that all |
377 | Digest:: modules should provide. |
378 | |
379 | Avoided some code duplication in MD5.xs |
380 | |
381 | Fixed typo, that prevented Digest::SHA1::sha1_base64() from working. |
382 | |
383 | |
384 | |
385 | 1998-10-27 Gisle Aas <aas@sn.no> |
386 | |
387 | Release 1.99_57 |
388 | |
389 | Rewritten most of the MD5 C code to make it real fast (especially |
390 | on little-endian machines without alignment restrictions for U32). |
391 | Compared to MD5-1.7 we can process files 4 times as fast and we |
392 | digest small stuff in memory 7 times faster. I came to these |
393 | conclusions after these tests (gcc -O2, i586, Linux): |
394 | |
395 | First tested calculation of the digest of a 31 MB file, using |
396 | perl -le 'print Digest::MD5->new->addfile(*STDIN)->hexdigest' |
397 | and similar stuff: |
398 | |
399 | MD5-1.7: 21.06s |
400 | Digest::MD5-1.99_57: 5.23s |
401 | md5sum (GNU textutils): 4.90s |
402 | |
403 | As you can see, we do nearly as good as the md5sum program. I |
404 | think the reason we don't beat md5sum is that perl always insist on |
405 | loading extra modules like Config.pm, Carp.pm, strict.pm, vars.pm, |
406 | AutoLoader.pm and DynaLoader.pm. When I simply wrapped the MD5.xs |
407 | hasher code in a C program I managed to process the file in 4.68s. |
408 | |
409 | Then we calculated the digest of the same 6 byte sting, 20000 |
410 | times: |
411 | |
412 | MD5-1.7: 11.81s |
413 | Digest::MD5-1.99_57: 1.68s |
414 | |
415 | Digest::MD5 benefit from making this into a plain procedure call |
416 | instead of a static method call. |
417 | |
418 | |
419 | Other changes in this release are: |
420 | |
421 | Documentation update |
422 | |
423 | Internal MD5.xs cleanup. |
424 | |
425 | $md5->digest will automatically reset now. |
426 | |
427 | Digest::HMAC methods add() and addfile() did not return the |
8be5f608 |
428 | correct object. |
3357b1b1 |
429 | |
430 | Added Digest.pm loading module. I am not sure this is a good idea. |
431 | |
432 | Added Digest::SHA1 and Digest::HMAC_SHA1 module. The Digest::SHA1 |
433 | module is just a wrapper around SHA.pm. I hope to get the author |
434 | of SHA.pm to move his module to the Digest:: category. |
435 | |
436 | |
437 | |
438 | 1998-10-25 Gisle Aas <aas@sn.no> |
439 | |
440 | Release 1.99_56 |
441 | |
442 | Fix memcpy_byteswap() function in MD5.xs. Must be careful with |
443 | htovl() as it might evaluate its arguments more than once. |
444 | |
445 | |
446 | |
447 | 1998-10-25 Gisle Aas <aas@sn.no> |
448 | |
449 | Release 1.99_55 |
450 | |
451 | Grahams HMAC_MD5.pm splitted into two modules. Digest::HMAC and |
452 | Digest::HMAC_MD5. Also provide functional interface. Documentation |
453 | is still lacking. |
454 | |
455 | Included RFC 2202 based test for HMAC-MD5. |
456 | |
457 | |
458 | |
459 | 1998-10-24 Gisle Aas <aas@sn.no> |
460 | |
461 | Release 1.99_54 |
462 | |
463 | Included HMAC_MD5.pm, contributed by Graham Barr <gbarr@ti.com>. |
464 | |
465 | I have a hard time to make up my mind :-) md5_bin() renamed back |
466 | to md5(). Functions are not exported by default any more. |
467 | |
468 | Try to Encode/Decode with memcpy_byteswap for 32-bit big-endian |
469 | machines. |
470 | |
471 | |
472 | |
473 | 1998-10-23 Gisle Aas <aas@sn.no> |
474 | |
475 | Release 1.99_53 |
476 | |
477 | Renamed core module as Digest::MD5. Leave a MD5.pm stub for |
478 | legacy code. |
479 | |
480 | The md5() function renamed as md5_bin(). |
481 | |
482 | The constructor, Digest::MD5->new, no longer takes any extra |
483 | arguments. |
484 | |
485 | Added some new tests. |
486 | |
487 | Updated the documentation. |
488 | |
489 | $md5->b64digest implemented with same base64 encoder as md5_base64. |
490 | |
491 | |
492 | |
493 | 1998-10-23 Gisle Aas <aas@sn.no> |
494 | |
495 | Release 1.99_52 |
496 | |
497 | Patch from Graham Barr which make it work for big-endian machines |
498 | again. |
499 | |
500 | |
501 | |
502 | 1998-10-22 Gisle Aas <aas@sn.no> |
503 | |
504 | Release 1.99_51 |
505 | |
506 | The MD5 class is now subclassable. |
507 | |
508 | The add() and addfile() methods now return $self. |
509 | |
510 | The reset() method is just an alias for new(). |
511 | |
512 | The constructor (MD5->new) now takes optional arguments which are |
513 | automatically added. It means that we can now write: |
514 | |
515 | MD5->new($data)->hexdigest; |
516 | |
517 | New $md5->b64digest method. |
518 | |
519 | New functions that are exported on request: md5, md5_hex, md5_base64 |
520 | |
521 | Included RFC 1321 |
522 | |
523 | Barely started to update the documentation. |
524 | |
525 | |
526 | |
527 | 1998-10-22 Gisle Aas <aas@sn.no> |
528 | |
529 | Release 1.99_50 |
530 | |
531 | Much better performance (more than twice as fast now). Mostly |
532 | because we use Copy/Zero instead of the original MD5_memcpy and |
533 | MD5_memset functions. |
534 | |
535 | The addfile() and hexdigest() methods are now XS implemented. |
536 | |
537 | All RSA functions now included in MD5.xs and made static. |
538 | |
539 | Use perl's Copy/Zero. |
540 | |
541 | Random cleanup, simplifications and reformatting. |
542 | Merged things better with the perl configuration. |
543 | |
544 | |
545 | |
546 | Neil Winton's versions below: |
547 | |
548 | |
549 | *** 96/06/20 Version 1.7 |
550 | |
551 | MD5 is now completely 64-bit clean (I hope). The basic MD5 code uses |
552 | 32-bit quantities and requires a typedef UINT4 to be defined in |
553 | global.h. Perl configuration data (the value of BYTEORDER) is used to |
554 | determine if unsigned longs have 4 or 8 bytes. On 64-bit platforms (eg |
555 | DEC Alpha) then it assumes that "unsigned int" will be a 32-bit type. |
556 | If this is incorrect then adding -DUINT4_IS_LONG to the DEFINES line in |
557 | Makefile.PL will override this. |
558 | |
559 | On some machines (at least Cray that I know of) there is no 32-bit |
560 | integer type. In this case defining TRUNCATE_UINT4 (which is done |
561 | automatically for a Cray) will ensure that 64-bit values are masked |
562 | down to 32 bits. I have done my best to test this but without easy |
563 | access to a true 64-bit machine I can not totally guarantee it (unless |
564 | anyone wants to lend me a spare Cray :-) |
565 | |
566 | There is one remaining limitation for 64-bit enabled processors. The |
567 | amount of data passed to any single call to the underlying MD5 |
568 | routines is limited to (2^32 - 1) bytes -- that's 4 gigabytes. I'm |
569 | sorry if that's a real problem for you ... |
570 | |
8be5f608 |
571 | And finally, a minor compilation warning (unsigned char * used with |
3357b1b1 |
572 | function having char * prototype) has also been eliminated. |
573 | |
574 | *** 96/04/09 Version 1.6 |
575 | |
576 | Re-generated module framework using h2xs to pick up the latest module |
577 | conventions for versions etc. You can now say "use MD5 1.6;" and things |
578 | should work correctly. MD5.pod has been integrated into MD5.pm and |
579 | CHANGES renamed to Changes. There is a fairly comprehensive test.pl |
580 | which can be invoked via "make test". There are no functional changes |
581 | to the MD5 routines themselves. |
582 | |
583 | *** 96/03/14 Version 1.5.3 |
584 | |
585 | Fixed addfile method to accept type-glob references for the file-handle |
586 | (eg \*STDOUT). This is more consistent with other routines and is now the |
587 | recommended way of passing file-handles. The documentation now gives more |
588 | examples as to how the routines might be used. |
589 | |
590 | *** 96/03/12 Version 1.5.2 |
591 | |
592 | Minor fixes from Christopher J Madsen <madsen@computek.net> to provide |
8be5f608 |
593 | support for building on OS/2 (and to work around a perl -w bug). |
3357b1b1 |
594 | |
595 | Remove warning about possible difference between add('foo', 'bar') and |
596 | add('foobar'). This is not true (it may have been true in the earliest |
597 | version of the module but is no longer the case). |
598 | |
599 | *** 96/03/08 Version 1.5.1 |
600 | |
601 | Add CHANGES file to make it easier for people to figure out what has |
602 | been going on. (Meant to do this as part of 1.5) |
603 | |
604 | *** 96/03/05 Version 1.5 |
605 | |
606 | Add hash() and hexhash() methods at the suggestion/request of Gary |
607 | Howland <gary@kampai.euronet.nl> before inclusion in a wider library |
608 | of cryptography modules. |
609 | |
610 | *** 96/02/27 Version 1.4 |
611 | |
612 | Finally fixed the pesky Solaris dynamic loading bug. All kudos to Ken |
613 | Pizzini <kenp@spry.com>! |
614 | |
615 | *** 95/11/29 Version 1.3.1 |
616 | |
617 | Add explanations of current known problems. |
618 | |
619 | *** 95/06/02 Version 1.3 |
620 | |
621 | Fix problems with scope resolution in addfile() reported by |
622 | Jean-Claude Giese <Jean-Claude.Giese@loria.fr>. Basically ARGV is |
623 | always implicitly in package main while other filehandles aren't. |
624 | |
625 | *** 95/05/23 Version 1.2.1 |
626 | |
627 | [Changes pre 1.2.1 not recorded] |