1 Revision history for Perl extension Digest::SHA.
3 5.41 Sat Jun 3 01:50:46 MST 2006
5 -- process $file argument as a filehandle unless passed
6 as a SCALAR (which indicates a file name)
8 5.40 Fri Jun 2 04:00:30 MST 2006
9 - modified addfile to accept indirect filehandles
10 -- ref. rt.cpan.org #19627 and #19641
12 5.39 Sun May 28 03:22:24 MST 2006
13 - modified shasum to warn rather than die for file errors
14 -- to follow conventions of GNU sha1sum/md5sum
16 5.38 Thu May 25 02:02:02 MST 2006
17 - added new capabilities to the "addfile" method
18 -- now able to accept file names as well as handles
19 -- includes mode for portable digest calculation
20 -- thanks to Adam Kennedy for emails and ideas
21 ref. File::LocalizeNewlines
22 - used expanded addfile interface to simplify shasum (sumfile)
23 -- regex a tad less general than 5.37, but handles all
24 known newline variants in UNIX/Windows/MacOS
25 - enhanced WARNING messages from shasum checkfile processing
26 -- to mimic behavior of md5sum
28 5.37 Mon May 8 04:30:09 MST 2006
29 - modified shasum to avoid file slurping (ref. sub sumfile)
30 - improved error handling of checksum files in shasum
31 -- to better mimic the behavior of md5sum
32 - refined line-break regex in shasum (ref. sub sumfile)
33 -- catches multiple CR's preceding LF
34 thanks to Gisle Aas for suggested patch
35 - changed loop vars to signed int's in shadump (ref. src/sha.c)
36 -- to prevent type mismatch warnings
38 5.36 Mon May 8 01:38:36 MST 2006
39 - fixed the "portable" option in shasum
40 -- normalize line-breaks in text files only
42 5.35 Thu May 4 16:54:42 MST 2006
43 - added "portable" option to shasum
44 -- to make digests match across Windows/Unix/MacOS
45 - enabled bundling of shasum command line options
46 -- to mimic behavior of md5sum
47 - removed \r's from text files in t/nist directory
48 -- resolves SIGNATURE clashes (rt.cpan.org #18983)
49 - changed suffix on SHA64_MAX (src/sha.h) to ULL
50 -- eliminates gcc warnings (rt.cpan.org #18988)
51 - specified minimum Perl version for module and Makefile.PL
52 -- closes rt.cpan.org #18984
54 5.34 Thu Feb 2 18:55:40 MST 2006
55 - removed Unix-style pathnames in test scripts
56 -- causing problems on OpenVMS
57 -- thanks to Steve Peters for patch
58 - included latest version of Perl Portability header (ppport.h)
59 - added PERL_CORE check to test scripts
60 -- allows module to be built into Perl distribution
62 5.32 Fri Dec 2 02:32:20 MST 2005
63 - added POD section to shasum script
64 -- thanks to Gunnar Wolf for patch
65 - made minor code changes to silence compiler warnings
66 -- resulting from signed/unsigned integer mixing
67 - inserted code in test scripts for POD checking
68 -- to recover gracefully if Test::More isn't installed
70 5.31 Mon Sep 5 00:52:42 MST 2005
71 - added standard tests for pod and pod-coverage checking
72 - inserted subtest to check for failure when using
73 unrecognized SHA algorithm
75 5.30 Sat Aug 20 16:46:08 MST 2005
76 - updated docs with recent NIST statement on SHA-1
77 -- advises use of larger and stronger hash functions
78 (i.e. SHA-224/256/384/512) for new developments
80 5.29 Sun Aug 14 04:48:34 MST 2005
81 - added explicit casts in "shaload" routine (ref. "ldvals")
82 -- thanks to E. Allen Smith for pointing out SGI compiler
83 warnings on IPxx-irix platforms
84 - updated docs with cautionary note about SHA-1
86 5.28 Wed Nov 10 15:33:20 MST 2004
87 - provided more flexible formatting of SHA state files
88 -- entries may now contain embedded whitespace
89 for improved readability
92 5.27 Sun Oct 24 02:54:00 MST 2004
94 -- reduces size of dump files for SHA-1/224/256
96 5.26 Thu Oct 7 14:52:00 MST 2004
97 - streamlined distribution
98 -- reduced NIST vector tests from 200 to 20
99 -- former number was overkill
100 -- distro now downloads and builds more quickly
101 - rewrote SYNOPSIS sections in pod file
102 - made additional tweaks to t/8-shasum.t for portability
103 - cleaned up test scripts
105 5.25 Sun Sep 12 18:48:00 MST 2004
106 - removed non-essential test script
107 -- t/8-shasum.t causes problems on sparc64-linux
108 - reverted to using eval "require $module" in shasum
110 5.24 Sun Sep 12 02:50:18 MST 2004
111 - modified shasum to use barewords in "require" statements
112 -- ref. perl.cpan.testers (157305)
114 5.23 Thu Sep 9 23:06:18 MST 2004
115 - corrected bug in test script
116 -- use blib when invoking perl as an external
117 command in t/8-shasum.t
119 5.22 Tue Sep 7 19:12:40 MST 2004
120 - broadened SHA-384/512 support
121 -- to compilers with no ULLONG_MAX in limits.h
122 -- e.g IBM C (xlC 6.0.0) on AIX 4.3.3
123 -- thanks to Chris Carey for suggestions
124 and technical expertise
125 - improved use of static storage class in transforms
126 -- detection of Intel arch. now done in Makefile.PL
127 -- NB: static not used if compiling for thread safety
128 - minor changes to documentation
130 5.21 Mon Aug 23 04:02:00 MST 2004
131 - removed 64-bit constant expressions from #if statements
132 -- ref. src/sha.h (lines 55, 58, and 61)
133 -- even if compiler supports long long's, preprocessor
134 may use long's when evaluating expressions
135 - improved test script for "shasum" (t/8-shasum.t)
136 -- exercises check file option (-c)
138 5.20 Sun Aug 15 04:24:48 MST 2004
139 - introduced "shasum" script
140 -- mimics the usage and behavior of "md5sum"
141 -- adds "-a" option to select SHA algorithm
142 -- for help, just type "shasum -h"
144 5.10 Fri Aug 6 02:04:38 MST 2004
145 - simplified module documentation
146 -- made it consistent with Digest::SHA::PurePerl docs
148 5.03 Sat Jul 31 00:00:48 MST 2004
149 - corrected HMAC-SHA-384/512 bug (cpan #7181, Adam Woodbury)
150 -- code was using hardwired blocksize for SHA-1/256
151 -- ref. src/hmac.c, src/hmac.h
153 5.02 Thu Jul 29 02:48:00 MST 2004
154 - updated documentation and "dump-load.t" test script
155 -- to be consistent with Digest::SHA::PurePerl
156 - included a SIGNATURE file
157 -- for stronger authentication of module contents
158 -- ref. Module::Signature on CPAN
159 - corrected embarrassing misspelling in docs
160 -- apologies to Gisle Aas
162 5.01 Fri May 21 13:08:12 MST 2004
163 - check for undefined SHA handle when calling "shaclose()"
164 -- prevents intermittent cleanup errors during
165 global object destruction
167 5.00 Fri May 14 04:45:00 MST 2004
168 - minor documentation fixes
169 - restored classical style of version numbering (X.YZ)
170 -- previous X.Y.Z style caused installation difficulties
173 4.3.3 Wed May 5 00:30:40 MST 2004
174 - fixed bug in "strto64()" function
175 -- caused problems in state files with CR/LF pairs
176 -- thanks to Martin Thurn for testing support
178 4.3.2 Wed Apr 28 03:56:00 MST 2004
179 - added Makefile.PL options
181 -- exclude 384/512 support: -x
182 -- e.g. perl Makefile.PL -t
183 - temporarily suppress dump/load tests for SHA-384/512
184 -- pending clarification of problem on sun4u sparc
186 4.3.1 Thu Mar 4 02:54:00 MST 2004
187 - removed unused functions from XS file
188 -- reduces size of compiled objects
189 - simplified implementation of Digest::SHA object
190 -- now a blessed SHAPtr ref instead of blessed array ref
191 -- results in slight speed-up of OO operations
192 - streamlined underlying C source
193 -- used macros to consolidate repetitive code
194 - rewrote test scripts to depend on Test rather than Test::More
195 -- allows module to be checked in minimal Perl environments
196 - added compilation option for thread-safety
197 -- overrides use of static arrays
199 4.3.0 Sat Feb 7 02:58:00 MST 2004
200 - included SHA-384/512 support if using Microsoft C/C++
201 -- uses MSVC's __int64 in place of "long long"
202 - enhanced portability and efficiency on diverse platforms
203 -- automatically sets up optimal types for 32/64-bit ops
204 - improved test scripts for better reporting
205 -- many thanks to Alex Muntada for helpful suggestions
207 4.2.2 Sat Jan 31 17:10:20 MST 2004
208 - repaired 32-bit SHA operations for 8-byte longs
210 4.2.1 Sat Jan 24 00:56:54 MST 2004
211 - modified I/O and memory management in underlying C code
212 -- uses Perl libraries when compiled as CPAN module
213 -- otherwise defaults to ANSI C libraries
214 -- bypasses problems in MSWin multi-threaded Perls
215 -- avoids "Free to wrong pool" error
216 -- special thanks to Robert Gilmour and Brian Gladman
217 for technical guidance and testing
219 4.2.0 Sat Dec 27 16:08:00 MST 2003
220 - added support for recently-announced SHA-224 algorithm
221 -- ref. FIPS 180-2 Change Notice 1
222 -- also includes HMAC-SHA-224
224 4.1.0 Thu Dec 25 00:58:00 MST 2003
225 - repaired "nist-vectors" test scripts for MSWin32 portability
226 -- use binmode for data files
228 4.0.9 Wed Dec 24 02:58:22 MST 2003
229 - use canonical file specs in test scripts
230 -- enhances portability across different OSes
231 - modify type declarations of objects in XS file
232 -- re-declare as (SV *) and cast to (AV *) SvRV(self)
233 -- in response to AVPtr problem on MSWin32
235 4.0.8 Thu Dec 18 23:32:00 MST 2003
236 - inherits from Digest::base if installed
237 -- also checks for MIME::Base64
238 -- still fully-functional if neither are installed
239 - added buffer overflow protection in underlying C code
240 -- ref. shahex() and shabase64() routines
241 -- prior code appeared impossible to exploit, but ...
242 -- better safe than sorry
243 -- does not impact runtime efficiency
246 4.0.7 Sat Dec 13 00:48:24 MST 2003
247 - check for undefined SHA handle when calling "shaclose()"
248 -- was causing cleanup err during global destruction
250 4.0.6 Thu Dec 11 02:18:00 MST 2003
251 - more optimization and streamlining
252 -- a bit faster on non-big-endians (e.g. Intel)
253 - rewrote time-critical functions and methods in XS
254 - removed unused C functions from source files
256 4.0.5 Sat Dec 6 00:02:24 MST 2003
257 - performance optimizations
258 -- rewrote "add" method in XS
259 -- unrolled loops in sha256 transform
261 4.0.4 Thu Dec 4 00:07:00 MST 2003
262 - made Digest::SHA into a self-contained module
263 -- no longer depends on Digest::base
264 -- more convenient for users
265 -- no need to install Digest:: module
267 4.0.3 Wed Dec 3 00:01:20 MST 2003
268 - Digest::SHA now a subclass of Digest::base
269 -- inherits hexdigest/b64digest/addfile methods
270 - added "hashsize" method
271 - removed old "shaopen()/shawrite()/..." legacy code
272 -- in favor of standard, streamlined OO interface
273 - renamed test vector files from NIST
274 -- prevents problems on 8+3 filesystems
275 - added test for Dave Ireland's SHA-256 vector
277 4.0.0 Sat Nov 29 21:14:09 MST 2003
278 - major streamlining of interface (hence, major version change)
279 -- coordinated with Gisle Aas and J. Duque
280 -- goal is to produce a single SHA module
281 -- adheres to OO and functional styles of Digest::
282 -- greatly reduces the number of interface functions
283 -- old functions still supported
284 -- use Digest::SHA ':legacy'
285 -- will be deprecated in near future
286 - rewrote all test scripts to match new interface
287 -- very easy to modify all 281 tests
288 -- old interface maps cleanly to new one
290 3.0 Wed Nov 26 05:02:34 MST 2003
291 - added functions that conform to Digest:: interface
292 -- both functional and OO styles
293 -- byte-oriented data only
294 -- continue to support original interface as well
295 -- necessary for bit-oriented data
296 - supplied formal test vectors for HMAC-SHA-256
297 -- from draft-ietf-ipsec-ciph-sha-256-01.txt
298 - included tests for all OO methods
300 2.4 Sat Nov 22 17:10:22 MST 2003
302 -- "sha.c" now completely free of #ifdef's
303 - modularized all 64-bit (long long) code
304 - improved readability of header files
305 - simplified logic of "fixdump" utility
307 2.3 Wed Nov 19 03:54:31 MST 2003
308 - minor optimizations and code cleanup
309 -- improved maintainability by reducing #ifdef's
310 -- sha1 transform code now easier to follow
311 - streamlined shadump/shaload file format
312 -- eliminated special "HQ" entry
313 -- state now held in "H" for all transforms
314 -- supplied "fixdump" utility to convert old format
315 - SHA-384/512 functions now return NULL for no 64-bit operations
316 -- previously they were undefined
317 -- no longer necessary to use eval's to test for presence
319 2.2 Sun Nov 16 01:54:00 MST 2003
320 - optimized the performance of the SHA-1 transform
321 -- around 20-30% faster than previous version
322 -- achieved by loop unrolling and assignment consolidation
323 - enhanced shaload/shadump to allow interaction with stdin/stdout
324 -- "$filename" argument now optional
326 2.1 Sun Nov 9 03:28:04 MST 2003
327 - simplified data input routines
328 -- length argument now optional for byte data
329 (special thanks to Jeffrey Friedl for this idea)
330 -- interface still compatible with earlier versions
331 -- changes will not affect existing client code
332 - streamlined underlying C code for easier maintenance
333 - provided additional tests for persistent data
335 2.0 Sat Nov 1 03:55:36 MST 2003
336 - added functions for HMAC-SHA-1/256/384/512 (FIPS PUB 198)
337 - shadump/shaload files now compatible between 32/64-bit machines
339 1.01 Sat Oct 25 02:44:55 MST 2003
340 - package now downloads and installs much faster
341 - reduced distribution size by 80%
342 -- pruned extensive NIST vectors to a useful subset
343 -- still possible to test all vectors if desired
344 --- see "t/nist/COPYRIGHT" file for details
345 - added routines to provide persistent storage of SHA states
346 -- shadump() and shaload()
347 - reduced runtime of large bitstring tests (gillogly-hard)
348 -- illustrates usefulness of shadump()/shaload()
350 1.0 Sat Oct 18 17:35:07 MST 2003
351 - documentation fixes
352 - code cleanup: no more compiler warnings from gcc -Wall
353 - added code to allow reading of intermediate digest state
354 -- shahex() prior to shafinish() returns current state
356 0.9 Thu Oct 9 20:43:54 MST 2003
357 - version updated to reflect portability check and passing
360 0.01 Wed Oct 8 22:28:05 2003
361 - original version; created by h2xs 1.22 with options
362 -x -A -n Digest::SHA sha.h