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