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