summaryrefslogtreecommitdiff
path: root/cpan/Digest-SHA
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2012-12-11 11:49:36 +0000
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2012-12-11 11:49:36 +0000
commita21a75c8b50f9fa1a0642bac43a6e51ed8083f0f (patch)
tree161e8e3ffa254ad499cf17444ec9cbe457a16ff4 /cpan/Digest-SHA
parent3ef6ec9001c8089ebaa0aeefdf6fa0839780776a (diff)
downloadperl-a21a75c8b50f9fa1a0642bac43a6e51ed8083f0f.tar.gz
Update Digest-SHA to CPAN version 5.80
[DELTA] 5.80 Mon Dec 10 14:15:26 MST 2012 - obtained noticeable speedup on Intel/gcc -- by setting -O1 and -fomit-frame-pointer -- SHA-1 about 63% faster, SHA-2 improves 11-20%
Diffstat (limited to 'cpan/Digest-SHA')
-rw-r--r--cpan/Digest-SHA/Changes5
-rw-r--r--cpan/Digest-SHA/Makefile.PL6
-rw-r--r--cpan/Digest-SHA/README2
-rw-r--r--cpan/Digest-SHA/lib/Digest/SHA.pm2
-rw-r--r--cpan/Digest-SHA/shasum6
-rw-r--r--cpan/Digest-SHA/src/hmac.c4
-rw-r--r--cpan/Digest-SHA/src/hmac.h4
-rw-r--r--cpan/Digest-SHA/src/sha.c6
-rw-r--r--cpan/Digest-SHA/src/sha.h4
9 files changed, 25 insertions, 14 deletions
diff --git a/cpan/Digest-SHA/Changes b/cpan/Digest-SHA/Changes
index 0651b7721f..97cb0fa707 100644
--- a/cpan/Digest-SHA/Changes
+++ b/cpan/Digest-SHA/Changes
@@ -1,5 +1,10 @@
Revision history for Perl extension Digest::SHA.
+5.80 Mon Dec 10 14:15:26 MST 2012
+ - obtained noticeable speedup on Intel/gcc
+ -- by setting -O1 and -fomit-frame-pointer
+ -- SHA-1 about 63% faster, SHA-2 improves 11-20%
+
5.74 Sat Nov 24 03:10:18 MST 2012
- handle wide-string input by converting to bytes first
-- viz. use SvPVbyte instead of SvPV in SHA.xs
diff --git a/cpan/Digest-SHA/Makefile.PL b/cpan/Digest-SHA/Makefile.PL
index a3a4caab72..9e87594275 100644
--- a/cpan/Digest-SHA/Makefile.PL
+++ b/cpan/Digest-SHA/Makefile.PL
@@ -37,6 +37,12 @@ if ($^O eq 'VMS') {
}
}
+ # Enhance performance on Intel when using gcc
+
+if ($Config{archname} =~ /^i[3456]86/ && $Config{ccname} eq 'gcc') {
+ push(@extra, OPTIMIZE => '-O1 -fomit-frame-pointer');
+}
+
my %att = (
'NAME' => 'Digest::SHA',
'VERSION_FROM' => $PM,
diff --git a/cpan/Digest-SHA/README b/cpan/Digest-SHA/README
index acae6e4e1c..c6592c8699 100644
--- a/cpan/Digest-SHA/README
+++ b/cpan/Digest-SHA/README
@@ -1,4 +1,4 @@
-Digest::SHA version 5.74
+Digest::SHA version 5.80
========================
Digest::SHA is a complete implementation of the NIST Secure Hash
diff --git a/cpan/Digest-SHA/lib/Digest/SHA.pm b/cpan/Digest-SHA/lib/Digest/SHA.pm
index 5edaae96b5..40934b6aac 100644
--- a/cpan/Digest-SHA/lib/Digest/SHA.pm
+++ b/cpan/Digest-SHA/lib/Digest/SHA.pm
@@ -7,7 +7,7 @@ use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
use Fcntl;
use integer;
-$VERSION = '5.74';
+$VERSION = '5.80';
require Exporter;
require DynaLoader;
diff --git a/cpan/Digest-SHA/shasum b/cpan/Digest-SHA/shasum
index 643651cbb7..12a27dba5d 100644
--- a/cpan/Digest-SHA/shasum
+++ b/cpan/Digest-SHA/shasum
@@ -4,8 +4,8 @@
##
## Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved
##
- ## Version: 5.74
- ## Sat Nov 24 03:10:18 MST 2012
+ ## Version: 5.80
+ ## Mon Dec 10 14:15:26 MST 2012
## shasum SYNOPSIS adapted from GNU Coreutils sha1sum.
## Add an "-a" option for algorithm selection, a "-p"
@@ -97,7 +97,7 @@ use strict;
use Fcntl;
use Getopt::Long;
-my $VERSION = "5.74";
+my $VERSION = "5.80";
## Try to use Digest::SHA. If not installed, use the slower
diff --git a/cpan/Digest-SHA/src/hmac.c b/cpan/Digest-SHA/src/hmac.c
index 2a429de8e1..97e78943f6 100644
--- a/cpan/Digest-SHA/src/hmac.c
+++ b/cpan/Digest-SHA/src/hmac.c
@@ -5,8 +5,8 @@
*
* Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved
*
- * Version: 5.74
- * Sat Nov 24 03:10:18 MST 2012
+ * Version: 5.80
+ * Mon Dec 10 14:15:26 MST 2012
*
*/
diff --git a/cpan/Digest-SHA/src/hmac.h b/cpan/Digest-SHA/src/hmac.h
index f45dbe5d81..bb81a33cb1 100644
--- a/cpan/Digest-SHA/src/hmac.h
+++ b/cpan/Digest-SHA/src/hmac.h
@@ -5,8 +5,8 @@
*
* Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved
*
- * Version: 5.74
- * Sat Nov 24 03:10:18 MST 2012
+ * Version: 5.80
+ * Mon Dec 10 14:15:26 MST 2012
*
*/
diff --git a/cpan/Digest-SHA/src/sha.c b/cpan/Digest-SHA/src/sha.c
index 2b250fb70b..d6b24c265c 100644
--- a/cpan/Digest-SHA/src/sha.c
+++ b/cpan/Digest-SHA/src/sha.c
@@ -5,8 +5,8 @@
*
* Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved
*
- * Version: 5.74
- * Sat Nov 24 03:10:18 MST 2012
+ * Version: 5.80
+ * Mon Dec 10 14:15:26 MST 2012
*
*/
@@ -456,7 +456,7 @@ char *shabase64(SHA *s)
digcpy(s);
s->base64[0] = '\0';
- if (B64LEN(s->digestlen) >= sizeof(s->base64))
+ if (B64LEN((size_t) s->digestlen) >= sizeof(s->base64))
return(s->base64);
for (n = s->digestlen, q = s->digest; n > 3; n -= 3, q += 3) {
encbase64(q, 3, out);
diff --git a/cpan/Digest-SHA/src/sha.h b/cpan/Digest-SHA/src/sha.h
index 8fe8598ca5..3355086347 100644
--- a/cpan/Digest-SHA/src/sha.h
+++ b/cpan/Digest-SHA/src/sha.h
@@ -5,8 +5,8 @@
*
* Copyright (C) 2003-2012 Mark Shelor, All Rights Reserved
*
- * Version: 5.74
- * Sat Nov 24 03:10:18 MST 2012
+ * Version: 5.80
+ * Mon Dec 10 14:15:26 MST 2012
*
*/