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