This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
6bcacdc2a34e6c0cc7ed51916b95e31acba53428
[perl5.git] / cpan / Digest-SHA / Changes
1 Revision history for Perl extension Digest::SHA.
2
3 5.61  Wed Mar  9 05:26:36 MST 2011
4         - corrected bug in 'algorithm' method
5         - fixed -x option in Makefile.PL
6                 -- not often used since it deliberately excludes
7                         all 64-bit SHA transforms
8         - addressed minor documentation oversights
9
10 5.60  Thu Mar  3 05:26:42 MST 2011
11         - added new SHA-512/224 and SHA-512/256 transforms
12                 -- ref. NIST Draft FIPS 180-4 (February 2011)
13         - simplified shasum by removing duplicative text
14         - improved efficiency of Addfile
15                 -- expensive -T test now occurs only in portable mode
16
17 5.50  Tue Dec 14 06:20:08 MST 2010
18         - adopted convention that '-' always means STDIN
19                 -- actual filename '-' accessed as './-'
20                 -- accords with behavior of sha1sum/md5sum
21         - corrected undefined subroutine oversight in shasum
22                 -- inadvertent migration of _bail() from SHA.pm
23
24 5.49  Sun Dec 12 07:22:04 MST 2010
25         - modified Addfile to accept all POSIX filenames
26                 -- standard allows all characters except NUL and '/'
27         - updated shasum to more closely mimic sha1sum/md5sum
28                 -- added "backslash processing" to handle newlines
29                         and backslashes in filenames
30                 -- now accepts all POSIX filenames via Addfile
31                 -- thanks to Sean Burke for identifying edge cases
32
33 5.48  Mon Jan  4 16:32:52 MST 2010
34         - fixed "shasum -a0" option (ref. rt.cpan.org #53319)
35                 -- incorrectly accepted 0 as a valid algorithm
36                         -- thanks to Zefram for patch
37         - updated URL for NIST test vectors
38                 -- ref. files t/nistbit.t, t/nistbyte.t
39                         -- thanks to Leon Brocard for patch
40
41 5.47  Wed Apr 30 04:00:54 MST 2008
42         - modified Makefile.PL to install in core for Perls >= 5.10
43                 -- thanks to Jerry Hedden for patch
44         - changed from #include <> to #include "" in SHA.xs
45                 -- some platforms not able to find SHA source files
46                         -- thanks to Alexandr Ciornii for testing
47         - moved .pm file to appropriate lib directory
48         - minor addition to META.yml
49
50 5.46  Wed Apr  9 05:04:00 MST 2008
51         - modified Addfile to recognize leading and trailing
52                 whitespace in filenames (ref. rt.cpan.org #34690)
53         - minor C source code modification (ref. hmac.c)
54         - use const in sha.c for clean builds with -Wwrite-strings
55                 -- thanks to Robin Barker for patch
56
57 5.45  Tue Jun 26 02:36:00 MST 2007
58         - extended portability to earlier Perls
59                 -- works on Perl 5.003 and later
60                 -- thanks to Jim Doble for testing on legacy platforms
61         - updated META.yml to conform to current META spec (1.3)
62         - minor documentation fixes
63
64 5.44  Sat Oct 14 00:42:44 MST 2006
65         - removed SIGNATURE file from distribution
66                 -- spurious errors from CPANPLUS can break build
67         - eliminated ppport.h header file
68                 -- significantly reduces size of distribution
69         - modified C functions in src/hmac.c to use ANSI prototypes
70                 -- thanks to Jarkko Hietaniemi for patch
71
72 5.43  Sat Aug  5 02:36:18 MST 2006
73         - undid Perl Best Practice of favoring 3-argument "open"
74                 -- 3-arg version uses different semantics for "-"
75                         causing bugs in addfile and shasum
76         - modified underlying C functions to use ANSI prototypes
77                 -- requested by Steve Hay (ref. Smoke [5.9.4] 28630)
78                 -- K&R style was causing numerous warnings from
79                         Borland compiler
80
81 5.42  Mon Jul 24 04:04:40 MST 2006
82         - minor code changes suggested by Perl::Critic
83                 -- e.g. no bareword filehandles, no 2-argument open's
84         - updated public key (ref. B538C51C)
85                 -- previous one (0AF563FE) expired July 2, 2006
86         - added documentation to warn that Base64 digests are NOT padded
87                 -- padding must be done by user if interoperability
88                         with other software is required
89
90 5.41  Sat Jun  3 01:50:46 MST 2006
91         - corrected addfile
92                 -- process $file argument as a filehandle unless passed
93                         as a SCALAR (which indicates a file name)
94
95 5.40  Fri Jun  2 04:00:30 MST 2006
96         - modified addfile to accept indirect filehandles
97                 -- ref. rt.cpan.org #19627 and #19641
98
99 5.39  Sun May 28 03:22:24 MST 2006
100         - modified shasum to warn rather than die for file errors
101                 -- to follow conventions of GNU sha1sum/md5sum
102
103 5.38  Thu May 25 02:02:02 MST 2006
104         - added new capabilities to the "addfile" method
105                 -- now able to accept file names as well as handles
106                 -- includes mode for portable digest calculation
107                         -- thanks to Adam Kennedy for emails and ideas
108                                 ref. File::LocalizeNewlines
109         - used expanded addfile interface to simplify shasum (sumfile)
110                 -- regex a tad less general than 5.37, but handles all
111                         known newline variants in UNIX/Windows/MacOS
112         - enhanced WARNING messages from shasum checkfile processing
113                 -- to mimic behavior of md5sum
114
115 5.37  Mon May  8 04:30:09 MST 2006
116         - modified shasum to avoid file slurping (ref. sub sumfile)
117         - improved error handling of checksum files in shasum
118                 -- to better mimic the behavior of md5sum
119         - refined line-break regex in shasum (ref. sub sumfile)
120                 -- catches multiple CR's preceding LF
121                         thanks to Gisle Aas for suggested patch
122         - changed loop vars to signed int's in shadump (ref. src/sha.c)
123                 -- to prevent type mismatch warnings
124
125 5.36  Mon May  8 01:38:36 MST 2006
126         - fixed the "portable" option in shasum
127                 -- normalize line-breaks in text files only
128
129 5.35  Thu May  4 16:54:42 MST 2006
130         - added "portable" option to shasum
131                 -- to make digests match across Windows/Unix/MacOS
132         - enabled bundling of shasum command line options
133                 -- to mimic behavior of md5sum
134         - removed \r's from text files in t/nist directory
135                 -- resolves SIGNATURE clashes (rt.cpan.org #18983)
136         - changed suffix on SHA64_MAX (src/sha.h) to ULL
137                 -- eliminates gcc warnings (rt.cpan.org #18988)
138         - specified minimum Perl version for module and Makefile.PL
139                 -- closes rt.cpan.org #18984
140
141 5.34  Thu Feb  2 18:55:40 MST 2006
142         - removed Unix-style pathnames in test scripts
143                 -- causing problems on OpenVMS
144                 -- thanks to Steve Peters for patch
145         - included latest version of Perl Portability header (ppport.h)
146         - added PERL_CORE check to test scripts
147                 -- allows module to be built into Perl distribution
148
149 5.32  Fri Dec  2 02:32:20 MST 2005
150         - added POD section to shasum script
151                 -- thanks to Gunnar Wolf for patch
152         - made minor code changes to silence compiler warnings
153                 -- resulting from signed/unsigned integer mixing
154         - inserted code in test scripts for POD checking
155                 -- to recover gracefully if Test::More isn't installed
156
157 5.31  Mon Sep  5 00:52:42 MST 2005
158         - added standard tests for pod and pod-coverage checking
159         - inserted subtest to check for failure when using
160                 unrecognized SHA algorithm
161
162 5.30  Sat Aug 20 16:46:08 MST 2005
163         - updated docs with recent NIST statement on SHA-1
164                 -- advises use of larger and stronger hash functions
165                         (i.e. SHA-224/256/384/512) for new developments
166
167 5.29  Sun Aug 14 04:48:34 MST 2005
168         - added explicit casts in "shaload" routine (ref. "ldvals")
169                 -- thanks to E. Allen Smith for pointing out SGI compiler
170                         warnings on IPxx-irix platforms
171         - updated docs with cautionary note about SHA-1
172
173 5.28  Wed Nov 10 15:33:20 MST 2004
174         - provided more flexible formatting of SHA state files
175                 -- entries may now contain embedded whitespace
176                         for improved readability
177         - minor code cleanups
178
179 5.27  Sun Oct 24 02:54:00 MST 2004
180         - minor code cleanups
181                 -- reduces size of dump files for SHA-1/224/256
182
183 5.26  Thu Oct  7 14:52:00 MST 2004
184         - streamlined distribution
185                 -- reduced NIST vector tests from 200 to 20
186                         -- former number was overkill
187                         -- distro now downloads and builds more quickly
188         - rewrote SYNOPSIS sections in pod file
189         - made additional tweaks to t/8-shasum.t for portability
190         - cleaned up test scripts
191
192 5.25  Sun Sep 12 18:48:00 MST 2004
193         - removed non-essential test script
194                 -- t/8-shasum.t causes problems on sparc64-linux
195         - reverted to using eval "require $module" in shasum
196
197 5.24  Sun Sep 12 02:50:18 MST 2004
198         - modified shasum to use barewords in "require" statements
199                 -- ref. perl.cpan.testers (157305)
200
201 5.23  Thu Sep  9 23:06:18 MST 2004
202         - corrected bug in test script
203                 -- use blib when invoking perl as an external
204                         command in t/8-shasum.t
205
206 5.22  Tue Sep  7 19:12:40 MST 2004
207         - broadened SHA-384/512 support
208                 -- to compilers with no ULLONG_MAX in limits.h
209                         -- e.g IBM C (xlC 6.0.0) on AIX 4.3.3
210                         -- thanks to Chris Carey for suggestions
211                                 and technical expertise
212         - improved use of static storage class in transforms
213                 -- detection of Intel arch. now done in Makefile.PL
214                 -- NB: static not used if compiling for thread safety
215         - minor changes to documentation
216
217 5.21  Mon Aug 23 04:02:00 MST 2004
218         - removed 64-bit constant expressions from #if statements
219                 -- ref. src/sha.h (lines 55, 58, and 61)
220                 -- even if compiler supports long long's, preprocessor
221                         may use long's when evaluating expressions
222         - improved test script for "shasum" (t/8-shasum.t)
223                 -- exercises check file option (-c)
224
225 5.20  Sun Aug 15 04:24:48 MST 2004
226         - introduced "shasum" script
227                 -- mimics the usage and behavior of "md5sum"
228                 -- adds "-a" option to select SHA algorithm
229                 -- for help, just type "shasum -h"
230
231 5.10  Fri Aug  6 02:04:38 MST 2004
232         - simplified module documentation
233                 -- made it consistent with Digest::SHA::PurePerl docs
234
235 5.03  Sat Jul 31 00:00:48 MST 2004
236         - corrected HMAC-SHA-384/512 bug (cpan #7181, Adam Woodbury)
237                 -- code was using hardwired blocksize for SHA-1/256
238                         -- ref. src/hmac.c, src/hmac.h
239
240 5.02  Thu Jul 29 02:48:00 MST 2004
241         - updated documentation and "dump-load.t" test script
242                 -- to be consistent with Digest::SHA::PurePerl
243         - included a SIGNATURE file
244                 -- for stronger authentication of module contents
245                         -- ref. Module::Signature on CPAN
246         - corrected embarrassing misspelling in docs
247                 -- apologies to Gisle Aas
248
249 5.01  Fri May 21 13:08:12 MST 2004
250         - check for undefined SHA handle when calling "shaclose()"
251                 -- prevents intermittent cleanup errors during
252                         global object destruction
253
254 5.00  Fri May 14 04:45:00 MST 2004
255         - minor documentation fixes
256         - restored classical style of version numbering (X.YZ)
257                 -- previous X.Y.Z style caused installation difficulties
258                         when using CPANPLUS
259
260 4.3.3 Wed May  5 00:30:40 MST 2004
261         - fixed bug in "strto64()" function
262                 -- caused problems in state files with CR/LF pairs
263                 -- thanks to Martin Thurn for testing support
264
265 4.3.2 Wed Apr 28 03:56:00 MST 2004
266         - added Makefile.PL options
267                 -- thread-safety: -t
268                 -- exclude 384/512 support: -x
269                 -- e.g. perl Makefile.PL -t
270         - temporarily suppress dump/load tests for SHA-384/512
271                 -- pending clarification of problem on sun4u sparc
272
273 4.3.1 Thu Mar  4 02:54:00 MST 2004
274         - removed unused functions from XS file
275                 -- reduces size of compiled objects
276         - simplified implementation of Digest::SHA object
277                 -- now a blessed SHAPtr ref instead of blessed array ref
278                 -- results in slight speed-up of OO operations
279         - streamlined underlying C source
280                 -- used macros to consolidate repetitive code
281         - rewrote test scripts to depend on Test rather than Test::More
282                 -- allows module to be checked in minimal Perl environments
283         - added compilation option for thread-safety
284                 -- overrides use of static arrays
285
286 4.3.0 Sat Feb  7 02:58:00 MST 2004
287         - included SHA-384/512 support if using Microsoft C/C++
288                 -- uses MSVC's __int64 in place of "long long"
289         - enhanced portability and efficiency on diverse platforms
290                 -- automatically sets up optimal types for 32/64-bit ops
291         - improved test scripts for better reporting
292                 -- many thanks to Alex Muntada for helpful suggestions
293
294 4.2.2 Sat Jan 31 17:10:20 MST 2004
295         - repaired 32-bit SHA operations for 8-byte longs
296
297 4.2.1 Sat Jan 24 00:56:54 MST 2004
298         - modified I/O and memory management in underlying C code
299                 -- uses Perl libraries when compiled as CPAN module
300                         -- otherwise defaults to ANSI C libraries
301                 -- bypasses problems in MSWin multi-threaded Perls
302                         -- avoids "Free to wrong pool" error
303                 -- special thanks to Robert Gilmour and Brian Gladman
304                         for technical guidance and testing
305
306 4.2.0 Sat Dec 27 16:08:00 MST 2003
307         - added support for recently-announced SHA-224 algorithm
308                 -- ref. FIPS 180-2 Change Notice 1
309                 -- also includes HMAC-SHA-224
310
311 4.1.0 Thu Dec 25 00:58:00 MST 2003
312         - repaired "nist-vectors" test scripts for MSWin32 portability
313                 -- use binmode for data files
314
315 4.0.9 Wed Dec 24 02:58:22 MST 2003
316         - use canonical file specs in test scripts
317                 -- enhances portability across different OSes
318         - modify type declarations of objects in XS file
319                 -- re-declare as (SV *) and cast to (AV *) SvRV(self)
320                         -- in response to AVPtr problem on MSWin32
321
322 4.0.8 Thu Dec 18 23:32:00 MST 2003
323         - inherits from Digest::base if installed
324                 -- also checks for MIME::Base64
325                 -- still fully-functional if neither are installed
326         - added buffer overflow protection in underlying C code
327                 -- ref. shahex() and shabase64() routines
328                 -- prior code appeared impossible to exploit, but ...
329                         -- better safe than sorry
330                 -- does not impact runtime efficiency
331         - minor code cleanup
332
333 4.0.7 Sat Dec 13 00:48:24 MST 2003
334         - check for undefined SHA handle when calling "shaclose()"
335                 -- was causing cleanup err during global destruction
336
337 4.0.6 Thu Dec 11 02:18:00 MST 2003
338         - more optimization and streamlining
339                 -- a bit faster on non-big-endians (e.g. Intel)
340         - rewrote time-critical functions and methods in XS
341         - removed unused C functions from source files
342
343 4.0.5 Sat Dec  6 00:02:24 MST 2003
344         - performance optimizations
345                 -- rewrote "add" method in XS
346                 -- unrolled loops in sha256 transform
347
348 4.0.4 Thu Dec  4 00:07:00 MST 2003
349         - made Digest::SHA into a self-contained module
350                 -- no longer depends on Digest::base
351                 -- more convenient for users
352                         -- no need to install Digest:: module
353
354 4.0.3 Wed Dec  3 00:01:20 MST 2003
355         - Digest::SHA now a subclass of Digest::base
356                 -- inherits hexdigest/b64digest/addfile methods
357         - added "hashsize" method
358         - removed old "shaopen()/shawrite()/..." legacy code
359                 -- in favor of standard, streamlined OO interface
360         - renamed test vector files from NIST
361                 -- prevents problems on 8+3 filesystems
362         - added test for Dave Ireland's SHA-256 vector
363
364 4.0.0 Sat Nov 29 21:14:09 MST 2003
365         - major streamlining of interface (hence, major version change)
366                 -- coordinated with Gisle Aas and J. Duque
367                         -- goal is to produce a single SHA module
368                 -- adheres to OO and functional styles of Digest::
369                 -- greatly reduces the number of interface functions
370                 -- old functions still supported
371                         -- use Digest::SHA ':legacy'
372                         -- will be deprecated in near future
373         - rewrote all test scripts to match new interface
374                 -- very easy to modify all 281 tests
375                 -- old interface maps cleanly to new one
376
377 3.0   Wed Nov 26 05:02:34 MST 2003
378         - added functions that conform to Digest:: interface
379                 -- both functional and OO styles
380                         -- byte-oriented data only
381                 -- continue to support original interface as well
382                         -- necessary for bit-oriented data
383         - supplied formal test vectors for HMAC-SHA-256
384                 -- from draft-ietf-ipsec-ciph-sha-256-01.txt
385         - included tests for all OO methods
386
387 2.4   Sat Nov 22 17:10:22 MST 2003
388         - code cleanup
389                 -- "sha.c" now completely free of #ifdef's
390         - modularized all 64-bit (long long) code
391         - improved readability of header files
392         - simplified logic of "fixdump" utility
393
394 2.3   Wed Nov 19 03:54:31 MST 2003
395         - minor optimizations and code cleanup
396                 -- improved maintainability by reducing #ifdef's
397                 -- sha1 transform code now easier to follow
398         - streamlined shadump/shaload file format
399                 -- eliminated special "HQ" entry
400                 -- state now held in "H" for all transforms
401                 -- supplied "fixdump" utility to convert old format
402         - SHA-384/512 functions now return NULL for no 64-bit operations
403                 -- previously they were undefined
404                 -- no longer necessary to use eval's to test for presence
405
406 2.2   Sun Nov 16 01:54:00 MST 2003
407         - optimized the performance of the SHA-1 transform
408                 -- around 20-30% faster than previous version
409                 -- achieved by loop unrolling and assignment consolidation
410         - enhanced shaload/shadump to allow interaction with stdin/stdout
411                 -- "$filename" argument now optional
412
413 2.1   Sun Nov  9 03:28:04 MST 2003
414         - simplified data input routines
415                 -- length argument now optional for byte data
416                         (special thanks to Jeffrey Friedl for this idea)
417                 -- interface still compatible with earlier versions
418                         -- changes will not affect existing client code
419         - streamlined underlying C code for easier maintenance
420         - provided additional tests for persistent data
421
422 2.0   Sat Nov  1 03:55:36 MST 2003
423         - added functions for HMAC-SHA-1/256/384/512 (FIPS PUB 198)
424         - shadump/shaload files now compatible between 32/64-bit machines
425
426 1.01  Sat Oct 25 02:44:55 MST 2003
427         - package now downloads and installs much faster
428         - reduced distribution size by 80%
429                 -- pruned extensive NIST vectors to a useful subset
430                 -- still possible to test all vectors if desired
431                         --- see "t/nist/COPYRIGHT" file for details
432         - added routines to provide persistent storage of SHA states
433                 -- shadump() and shaload()
434         - reduced runtime of large bitstring tests (gillogly-hard)
435                 -- illustrates usefulness of shadump()/shaload()
436
437 1.0   Sat Oct 18 17:35:07 MST 2003
438         - documentation fixes
439         - code cleanup: no more compiler warnings from gcc -Wall
440         - added code to allow reading of intermediate digest state
441                 -- shahex() prior to shafinish() returns current state
442
443 0.9   Thu Oct  9 20:43:54 MST 2003
444         - version updated to reflect portability check and passing
445                 of all tests (1401)
446
447 0.01  Wed Oct  8 22:28:05 2003
448         - original version; created by h2xs 1.22 with options
449                 -x -A -n Digest::SHA sha.h