"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Digest/HMAC.pm" between
Digest-HMAC-1.03.tar.gz and Digest-HMAC-1.04.tar.gz

About: The Digest::HMAC perl module is used for message integrity checks between two parties that share a secret key.

HMAC.pm  (Digest-HMAC-1.03):HMAC.pm  (Digest-HMAC-1.04)
package Digest::HMAC; package Digest::HMAC;
$VERSION = "1.03"; our $VERSION = '1.04'; # VERSION
our $AUTHORITY = 'cpan:ARODLAND'; # AUTHORITY
use strict; use strict;
# OO interface # OO interface
sub new sub new
{ {
my($class, $key, $hasher, $block_size) = @_; my($class, $key, $hasher, $block_size) = @_;
$block_size ||= 64; $block_size ||= 64;
$key = $hasher->new->add($key)->digest if length($key) > $block_size; $key = $hasher->new->add($key)->digest if length($key) > $block_size;
skipping to change at line 115 skipping to change at line 116
The default $blocksize is 64 which is suitable for the MD5 and SHA-1 digest 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 functions. For stronger algorithms the blocksize probably needs to be
increased. increased.
=head1 SEE ALSO =head1 SEE ALSO
L<Digest::HMAC_MD5>, L<Digest::HMAC_SHA1> L<Digest::HMAC_MD5>, L<Digest::HMAC_SHA1>
RFC 2104 RFC 2104
=head1 AUTHORS =head1 MAINTAINER
Andrew Rodland <arodland@cpan.org>
=head1 ORIGINAL AUTHORS
Graham Barr <gbarr@ti.com>, Gisle Aas <gisle@aas.no> Graham Barr <gbarr@ti.com>, Gisle Aas <gisle@aas.no>
=cut =cut
 End of changes. 2 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)