r77828 - in /branches/upstream/libdigest-hmac-perl/current: Changes META.yml Makefile.PL lib/Digest/HMAC.pm lib/Digest/HMAC_SHA1.pm
carnil at users.alioth.debian.org
carnil at users.alioth.debian.org
Mon Jul 25 19:48:10 UTC 2011
Author: carnil
Date: Mon Jul 25 19:48:07 2011
New Revision: 77828
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=77828
Log:
[svn-upgrade] new version libdigest-hmac-perl (1.03+dfsg)
Modified:
branches/upstream/libdigest-hmac-perl/current/Changes
branches/upstream/libdigest-hmac-perl/current/META.yml
branches/upstream/libdigest-hmac-perl/current/Makefile.PL
branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC.pm
branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC_SHA1.pm
Modified: branches/upstream/libdigest-hmac-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-hmac-perl/current/Changes?rev=77828&op=diff
==============================================================================
--- branches/upstream/libdigest-hmac-perl/current/Changes (original)
+++ branches/upstream/libdigest-hmac-perl/current/Changes Mon Jul 25 19:48:07 2011
@@ -1,3 +1,13 @@
+2011-07-25 Gisle Aas <gisle at ActiveState.com>
+
+ Release 1.03
+
+ Depend on Digest::SHA instead of Digest::SHA1 [RT#69776]
+
+ Document the blocksize argument [RT#14551]
+
+
+
2010-01-10 Gisle Aas <gisle at ActiveState.com>
Release 1.02
Modified: branches/upstream/libdigest-hmac-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-hmac-perl/current/META.yml?rev=77828&op=diff
==============================================================================
--- branches/upstream/libdigest-hmac-perl/current/META.yml (original)
+++ branches/upstream/libdigest-hmac-perl/current/META.yml Mon Jul 25 19:48:07 2011
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Digest-HMAC
-version: 1.02
+version: 1.03
abstract: Keyed-Hashing for Message Authentication
author:
- Gisle Aas <gisle at activestate.com>
@@ -11,14 +11,14 @@
build_requires:
ExtUtils::MakeMaker: 0
requires:
- Digest::MD5: 2
- Digest::SHA1: 1
- perl: 5.004
+ Digest::MD5: 2
+ Digest::SHA: 1
+ perl: 5.004
no_index:
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.55_02
+generated_by: ExtUtils::MakeMaker version 6.57_05
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
Modified: branches/upstream/libdigest-hmac-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-hmac-perl/current/Makefile.PL?rev=77828&op=diff
==============================================================================
--- branches/upstream/libdigest-hmac-perl/current/Makefile.PL (original)
+++ branches/upstream/libdigest-hmac-perl/current/Makefile.PL Mon Jul 25 19:48:07 2011
@@ -6,7 +6,7 @@
'VERSION_FROM' => 'lib/Digest/HMAC.pm',
'ABSTRACT_FROM' => 'lib/Digest/HMAC.pm',
'PREREQ_PM' => { 'Digest::MD5' => 2.00,
- 'Digest::SHA1' => 1.00,
+ 'Digest::SHA' => 1.00,
},
'AUTHOR' => 'Gisle Aas <gisle at activestate.com>',
'LICENSE' => 'perl',
Modified: branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC.pm?rev=77828&op=diff
==============================================================================
--- branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC.pm (original)
+++ branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC.pm Mon Jul 25 19:48:07 2011
@@ -1,5 +1,5 @@
package Digest::HMAC;
-$VERSION = "1.02";
+$VERSION = "1.03";
use strict;
@@ -98,6 +98,15 @@
takes the secret key and the name of some other simple C<Digest::>
as argument.
+The hmac() and hmac_hex() functions and the Digest::HMAC->new() constructor
+takes an optional $blocksize argument as well. The HMAC algorithm assumes the
+digester to hash by iterating a basic compression function on blocks of data
+and the $blocksize should match the byte-length of such blocks.
+
+The default $blocksize is 64 which is suitable for the MD5 and SHA-1 digest
+functions. For stronger algorithms the blocksize probably needs to be
+increased.
+
=head1 SEE ALSO
L<Digest::HMAC_MD5>, L<Digest::HMAC_SHA1>
Modified: branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC_SHA1.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC_SHA1.pm?rev=77828&op=diff
==============================================================================
--- branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC_SHA1.pm (original)
+++ branches/upstream/libdigest-hmac-perl/current/lib/Digest/HMAC_SHA1.pm Mon Jul 25 19:48:07 2011
@@ -1,8 +1,8 @@
package Digest::HMAC_SHA1;
-$VERSION="1.01";
+$VERSION="1.03";
use strict;
-use Digest::SHA1 qw(sha1);
+use Digest::SHA qw(sha1);
use Digest::HMAC qw(hmac);
# OO interface
@@ -11,7 +11,7 @@
sub new
{
my $class = shift;
- $class->SUPER::new($_[0], "Digest::SHA1", 64);
+ $class->SUPER::new($_[0], "Digest::SHA", 64); # Digest::SHA defaults to SHA-1
}
# Functional interface
@@ -62,7 +62,7 @@
=head1 SEE ALSO
-L<Digest::HMAC>, L<Digest::SHA1>, L<Digest::HMAC_MD5>
+L<Digest::HMAC>, L<Digest::SHA>, L<Digest::HMAC_MD5>
=head1 AUTHOR
More information about the Pkg-perl-cvs-commits
mailing list