Digest-HMAC_MD6
view release on metacpan or search on metacpan
lib/Digest/HMAC_MD6.pm view on Meta::CPAN
The key to hash with.
=item C<$block_size>
The block size to use.
=item C<$hash_bits>
The number of bits of hash to compute.
=back
The C<$block_size> and C<$hash_bits> arguments may be omitted in which
case they default to 64 and 256 respectively.
=cut
sub hmac_md6 {
my $data = shift;
__PACKAGE__->new( @_ )->add( $data )->digest;
}
=head2 C<hmac_md6_hex>
Like L</hmac_md6> but return the hex representation of the key.
=cut
sub hmac_md6_hex {
my $data = shift;
__PACKAGE__->new( @_ )->add( $data )->hexdigest;
}
=head2 C<hmac_md6_base64>
Like L</hmac_md6> but return the base 64 representation of the key.
=cut
sub hmac_md6_base64 {
my $data = shift;
__PACKAGE__->new( @_ )->add( $data )->b64digest;
}
1;
__END__
=head1 SEE ALSO
L<Digest::HMAC>, L<Digest::MD6>
=head1 DEPENDENCIES
L<Digest::HMAC>, L<Digest::MD6>
=head1 INCOMPATIBILITIES
None reported.
=head1 BUGS AND LIMITATIONS
Please report any bugs or feature requests to
C<bug-digest-hmac_md6@rt.cpan.org>, or through the web interface at
L<http://rt.cpan.org>.
=head1 AUTHOR
Andy Armstrong C<< <andy@hexten.net> >>
=head1 LICENCE AND COPYRIGHT
Copyright (c) 2009, Andy Armstrong C<< <andy@hexten.net> >>.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See L<perlartistic>.
( run in 2.988 seconds using v1.01-cache-2.11-cpan-63c85eba8c4 )