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