r50236 - in /branches/upstream/libdigest-sha-perl/current: Changes META.yml README SHA.xs lib/Digest/SHA.pm shasum src/hmac.c src/hmac.h src/sha.c src/sha.h t/nistbit.t t/nistbyte.t
carnil-guest at users.alioth.debian.org
carnil-guest at users.alioth.debian.org
Tue Jan 5 14:17:01 UTC 2010
Author: carnil-guest
Date: Tue Jan 5 14:15:37 2010
New Revision: 50236
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=50236
Log:
[svn-upgrade] Integrating new upstream version, libdigest-sha-perl (5.48)
Modified:
branches/upstream/libdigest-sha-perl/current/Changes
branches/upstream/libdigest-sha-perl/current/META.yml
branches/upstream/libdigest-sha-perl/current/README
branches/upstream/libdigest-sha-perl/current/SHA.xs
branches/upstream/libdigest-sha-perl/current/lib/Digest/SHA.pm
branches/upstream/libdigest-sha-perl/current/shasum
branches/upstream/libdigest-sha-perl/current/src/hmac.c
branches/upstream/libdigest-sha-perl/current/src/hmac.h
branches/upstream/libdigest-sha-perl/current/src/sha.c
branches/upstream/libdigest-sha-perl/current/src/sha.h
branches/upstream/libdigest-sha-perl/current/t/nistbit.t
branches/upstream/libdigest-sha-perl/current/t/nistbyte.t
Modified: branches/upstream/libdigest-sha-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/Changes?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/Changes (original)
+++ branches/upstream/libdigest-sha-perl/current/Changes Tue Jan 5 14:15:37 2010
@@ -1,4 +1,12 @@
Revision history for Perl extension Digest::SHA.
+
+5.48 Mon Jan 4 16:32:52 MST 2010
+ - fixed "shasum -a0" option (ref. rt.cpan.org #53319)
+ -- incorrectly accepted 0 as a valid algorithm
+ -- thanks to Zefram for patch
+ - updated URL for NIST test vectors
+ -- ref. files t/nistbit.t, t/nistbyte.t
+ -- thanks to Leon Brocard for patch
5.47 Wed Apr 30 04:00:54 MST 2008
- modified Makefile.PL to install in core for Perls >= 5.10
Modified: branches/upstream/libdigest-sha-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/META.yml?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/META.yml (original)
+++ branches/upstream/libdigest-sha-perl/current/META.yml Tue Jan 5 14:15:37 2010
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Digest-SHA
-version: 5.47
+version: 5.48
abstract: Perl extension for SHA-1/224/256/384/512
license: perl
author:
@@ -10,7 +10,7 @@
provides:
Digest::SHA:
file: lib/Digest/SHA.pm
- version: 5.47
+ version: 5.48
meta-spec:
version: 1.3
url: http://module-build.sourceforge.net/META-spec-v1.3.html
Modified: branches/upstream/libdigest-sha-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/README?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/README (original)
+++ branches/upstream/libdigest-sha-perl/current/README Tue Jan 5 14:15:37 2010
@@ -1,4 +1,4 @@
-Digest::SHA version 5.47
+Digest::SHA version 5.48
========================
Digest::SHA is a complete implementation of the NIST Secure Hash
@@ -34,7 +34,7 @@
COPYRIGHT AND LICENSE
-Copyright (C) 2003-2008 Mark Shelor
+Copyright (C) 2003-2010 Mark Shelor
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
Modified: branches/upstream/libdigest-sha-perl/current/SHA.xs
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/SHA.xs?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/SHA.xs (original)
+++ branches/upstream/libdigest-sha-perl/current/SHA.xs Tue Jan 5 14:15:37 2010
@@ -8,7 +8,7 @@
static int ix2alg[] =
{1,1,1,224,224,224,256,256,256,384,384,384,512,512,512};
-MODULE = Digest::SHA PACKAGE = Digest::SHA
+MODULE = Digest::SHA PACKAGE = Digest::SHA
PROTOTYPES: ENABLE
Modified: branches/upstream/libdigest-sha-perl/current/lib/Digest/SHA.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/lib/Digest/SHA.pm?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/lib/Digest/SHA.pm (original)
+++ branches/upstream/libdigest-sha-perl/current/lib/Digest/SHA.pm Tue Jan 5 14:15:37 2010
@@ -6,7 +6,7 @@
use integer;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
-$VERSION = '5.47';
+$VERSION = '5.48';
require Exporter;
require DynaLoader;
@@ -659,7 +659,7 @@
=head1 COPYRIGHT AND LICENSE
-Copyright (C) 2003-2008 Mark Shelor
+Copyright (C) 2003-2010 Mark Shelor
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
Modified: branches/upstream/libdigest-sha-perl/current/shasum
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/shasum?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/shasum (original)
+++ branches/upstream/libdigest-sha-perl/current/shasum Tue Jan 5 14:15:37 2010
@@ -2,10 +2,10 @@
# shasum: filter for computing SHA digests (analogous to sha1sum)
#
- # Copyright (C) 2003-2008 Mark Shelor, All Rights Reserved
+ # Copyright (C) 2003-2010 Mark Shelor, All Rights Reserved
#
- # Version: 5.47
- # Wed Apr 30 04:00:54 MST 2008
+ # Version: 5.48
+ # Mon Jan 4 16:32:52 MST 2010
=head1 NAME
@@ -49,11 +49,11 @@
The following command shows how easy it is to compute digests for typical
inputs such as the NIST test vector "abc":
- perl -e "print qw(abc)" | shasum
+ perl -e "print qq(abc)" | shasum
Or, if you want to use SHA-256 instead of the default SHA-1, simply say:
- perl -e "print qw(abc)" | shasum -a 256
+ perl -e "print qq(abc)" | shasum -a 256
Since I<shasum> uses the same interface employed by the familiar
I<sha1sum> program (and its somewhat outmoded anscestor I<md5sum>),
@@ -61,7 +61,7 @@
=head1 AUTHOR
-Copyright (c) 2003-2008 Mark Shelor <mshelor at cpan.org>.
+Copyright (c) 2003-2010 Mark Shelor <mshelor at cpan.org>.
=head1 SEE ALSO
@@ -74,7 +74,7 @@
use FileHandle;
use Getopt::Long;
-my $VERSION = "5.47";
+my $VERSION = "5.48";
# Try to use Digest::SHA, since it's faster. If not installed,
@@ -164,7 +164,7 @@
# Default to SHA-1 unless overriden by command line option
-$alg = 1 unless $alg;
+$alg = 1 unless defined $alg;
grep { $_ == $alg } (1, 224, 256, 384, 512)
or usage(1, "shasum: Unrecognized algorithm\n");
Modified: branches/upstream/libdigest-sha-perl/current/src/hmac.c
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/src/hmac.c?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/src/hmac.c (original)
+++ branches/upstream/libdigest-sha-perl/current/src/hmac.c Tue Jan 5 14:15:37 2010
@@ -3,10 +3,10 @@
*
* Ref: FIPS PUB 198 The Keyed-Hash Message Authentication Code
*
- * Copyright (C) 2003-2008 Mark Shelor, All Rights Reserved
+ * Copyright (C) 2003-2010 Mark Shelor, All Rights Reserved
*
- * Version: 5.47
- * Wed Apr 30 04:00:54 MST 2008
+ * Version: 5.48
+ * Mon Jan 4 16:32:52 MST 2010
*
*/
Modified: branches/upstream/libdigest-sha-perl/current/src/hmac.h
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/src/hmac.h?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/src/hmac.h (original)
+++ branches/upstream/libdigest-sha-perl/current/src/hmac.h Tue Jan 5 14:15:37 2010
@@ -3,10 +3,10 @@
*
* Ref: FIPS PUB 198 The Keyed-Hash Message Authentication Code
*
- * Copyright (C) 2003-2008 Mark Shelor, All Rights Reserved
+ * Copyright (C) 2003-2010 Mark Shelor, All Rights Reserved
*
- * Version: 5.47
- * Wed Apr 30 04:00:54 MST 2008
+ * Version: 5.48
+ * Mon Jan 4 16:32:52 MST 2010
*
*/
Modified: branches/upstream/libdigest-sha-perl/current/src/sha.c
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/src/sha.c?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/src/sha.c (original)
+++ branches/upstream/libdigest-sha-perl/current/src/sha.c Tue Jan 5 14:15:37 2010
@@ -3,10 +3,10 @@
*
* Ref: NIST FIPS PUB 180-2 Secure Hash Standard
*
- * Copyright (C) 2003-2008 Mark Shelor, All Rights Reserved
+ * Copyright (C) 2003-2010 Mark Shelor, All Rights Reserved
*
- * Version: 5.47
- * Wed Apr 30 04:00:54 MST 2008
+ * Version: 5.48
+ * Mon Jan 4 16:32:52 MST 2010
*
*/
Modified: branches/upstream/libdigest-sha-perl/current/src/sha.h
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/src/sha.h?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/src/sha.h (original)
+++ branches/upstream/libdigest-sha-perl/current/src/sha.h Tue Jan 5 14:15:37 2010
@@ -3,10 +3,10 @@
*
* Ref: NIST FIPS PUB 180-2 Secure Hash Standard
*
- * Copyright (C) 2003-2008 Mark Shelor, All Rights Reserved
- *
- * Version: 5.47
- * Wed Apr 30 04:00:54 MST 2008
+ * Copyright (C) 2003-2010 Mark Shelor, All Rights Reserved
+ *
+ * Version: 5.48
+ * Mon Jan 4 16:32:52 MST 2010
*
*/
Modified: branches/upstream/libdigest-sha-perl/current/t/nistbit.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/t/nistbit.t?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/t/nistbit.t (original)
+++ branches/upstream/libdigest-sha-perl/current/t/nistbit.t Tue Jan 5 14:15:37 2010
@@ -1,6 +1,6 @@
# Test against SHA-1 Sample Vectors from NIST
#
-# ref: http://csrc.nist.gov/cryptval/shs.html
+# ref: http://www.nsrl.nist.gov/testdata/
use strict;
Modified: branches/upstream/libdigest-sha-perl/current/t/nistbyte.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-sha-perl/current/t/nistbyte.t?rev=50236&op=diff
==============================================================================
--- branches/upstream/libdigest-sha-perl/current/t/nistbyte.t (original)
+++ branches/upstream/libdigest-sha-perl/current/t/nistbyte.t Tue Jan 5 14:15:37 2010
@@ -1,6 +1,6 @@
# Test against SHA-1 Sample Vectors from NIST
#
-# ref: http://csrc.nist.gov/cryptval/shs.html
+# ref: http://www.nsrl.nist.gov/testdata/
use strict;
More information about the Pkg-perl-cvs-commits
mailing list