From 1bd6a86e85991bbfc5b5a2502a5f6fce329aa510 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Sat, 14 Oct 2006 23:11:23 +0000 Subject: [PATCH] Upgrade to Digest-SHA-5.44. p4raw-id: //depot/perl@29019 --- ext/Digest/SHA/Changes | 8 ++++++++ ext/Digest/SHA/README | 2 +- ext/Digest/SHA/SHA.pm | 17 ++++++++--------- ext/Digest/SHA/SHA.xs | 2 -- ext/Digest/SHA/bin/shasum | 6 +++--- ext/Digest/SHA/src/hmac.c | 4 ++-- ext/Digest/SHA/src/hmac.h | 4 ++-- ext/Digest/SHA/src/sha.c | 4 ++-- ext/Digest/SHA/src/sha.h | 4 ++-- 9 files changed, 28 insertions(+), 23 deletions(-) diff --git a/ext/Digest/SHA/Changes b/ext/Digest/SHA/Changes index 42bce4f..c630084 100644 --- a/ext/Digest/SHA/Changes +++ b/ext/Digest/SHA/Changes @@ -1,5 +1,13 @@ Revision history for Perl extension Digest::SHA. +5.44 Sat Oct 14 00:42:44 MST 2006 + - removed SIGNATURE file from distribution + -- spurious errors from CPANPLUS can break build + - eliminated ppport.h header file + -- significantly reduces size of distribution + - modified C functions in src/hmac.c to use ANSI prototypes + -- thanks to Jarkko Hietaniemi for patch + 5.43 Sat Aug 5 02:36:18 MST 2006 - undid Perl Best Practice of favoring 3-argument "open" -- 3-arg version uses different semantics for "-" diff --git a/ext/Digest/SHA/README b/ext/Digest/SHA/README index 550f7bc..050964b 100644 --- a/ext/Digest/SHA/README +++ b/ext/Digest/SHA/README @@ -1,4 +1,4 @@ -Digest::SHA version 5.43 +Digest::SHA version 5.44 ======================== Digest::SHA is a complete implementation of the NIST Secure Hash diff --git a/ext/Digest/SHA/SHA.pm b/ext/Digest/SHA/SHA.pm index 48a7208..c2049b7 100644 --- a/ext/Digest/SHA/SHA.pm +++ b/ext/Digest/SHA/SHA.pm @@ -6,7 +6,7 @@ use strict; use warnings; use integer; -our $VERSION = '5.43_01'; +our $VERSION = '5.44'; require Exporter; our @ISA = qw(Exporter); @@ -323,17 +323,16 @@ the larger and stronger hash functions.> ref. L -=head1 BASE64 DIGESTS +=head1 PADDING OF BASE64 DIGESTS -By convention, CPAN Digest modules do not pad their Base64 output. -This means that Base64 digests contain no trailing "=" characters. -Unfortunately, problems can occur when feeding such digests to other -software that expects properly padded Base64 encodings. +By convention, CPAN Digest modules do B pad their Base64 output. +Problems can occur when feeding such digests to other software that +expects properly padded Base64 encodings. For the time being, any necessary padding must be done by the user. -Fortunately, the rule for accomplishing it is straightforward: if the -length of a Base64-encoded digest isn't a multiple of 4, simply append -1 or more "=" characters to the end of the digest until it is: +Fortunately, this is a simple operation: if the length of a Base64-encoded +digest isn't a multiple of 4, simply append "=" characters to the end +of the digest until it is: while (length($b64_digest) % 4) { $b64_digest .= '='; diff --git a/ext/Digest/SHA/SHA.xs b/ext/Digest/SHA/SHA.xs index a1b678b..c045da5 100644 --- a/ext/Digest/SHA/SHA.xs +++ b/ext/Digest/SHA/SHA.xs @@ -2,8 +2,6 @@ #include "perl.h" #include "XSUB.h" -#include "ppport.h" - #include #include diff --git a/ext/Digest/SHA/bin/shasum b/ext/Digest/SHA/bin/shasum index 101afcf..dc30a9e 100755 --- a/ext/Digest/SHA/bin/shasum +++ b/ext/Digest/SHA/bin/shasum @@ -4,8 +4,8 @@ # # Copyright (C) 2003-2006 Mark Shelor, All Rights Reserved # - # Version: 5.43 - # Sat Aug 5 02:36:18 MST 2006 + # Version: 5.44 + # Sat Oct 14 00:42:44 MST 2006 =head1 NAME @@ -52,7 +52,7 @@ L. use strict; use Getopt::Long; -my $VERSION = "5.43"; +my $VERSION = "5.44"; # Try to use Digest::SHA, since it's faster. If not installed, diff --git a/ext/Digest/SHA/src/hmac.c b/ext/Digest/SHA/src/hmac.c index 4fd7610..bb3bf24 100644 --- a/ext/Digest/SHA/src/hmac.c +++ b/ext/Digest/SHA/src/hmac.c @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2006 Mark Shelor, All Rights Reserved * - * Version: 5.43 - * Sat Aug 5 02:36:18 MST 2006 + * Version: 5.44 + * Sat Oct 14 00:42:44 MST 2006 * */ diff --git a/ext/Digest/SHA/src/hmac.h b/ext/Digest/SHA/src/hmac.h index 4a80501..1131358 100644 --- a/ext/Digest/SHA/src/hmac.h +++ b/ext/Digest/SHA/src/hmac.h @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2006 Mark Shelor, All Rights Reserved * - * Version: 5.43 - * Sat Aug 5 02:36:18 MST 2006 + * Version: 5.44 + * Sat Oct 14 00:42:44 MST 2006 * */ diff --git a/ext/Digest/SHA/src/sha.c b/ext/Digest/SHA/src/sha.c index d5d7aad..d6b5302 100644 --- a/ext/Digest/SHA/src/sha.c +++ b/ext/Digest/SHA/src/sha.c @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2006 Mark Shelor, All Rights Reserved * - * Version: 5.43 - * Sat Aug 5 02:36:18 MST 2006 + * Version: 5.44 + * Sat Oct 14 00:42:44 MST 2006 * */ diff --git a/ext/Digest/SHA/src/sha.h b/ext/Digest/SHA/src/sha.h index 305f5d6..1f5cca0 100644 --- a/ext/Digest/SHA/src/sha.h +++ b/ext/Digest/SHA/src/sha.h @@ -5,8 +5,8 @@ * * Copyright (C) 2003-2006 Mark Shelor, All Rights Reserved * - * Version: 5.43 - * Sat Aug 5 02:36:18 MST 2006 + * Version: 5.44 + * Sat Oct 14 00:42:44 MST 2006 * */ -- 2.7.4