X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FDigest%2FHighwayHash.pm;h=df6ecb4f1dec0dd6733f91d13c3abf8fe2bd9ddb;hb=e83a532ba9b360889083386972d318c25bc7982c;hp=108021b4fc71dd320a1191725316a9a5414cb67f;hpb=096619f2ab2b023d65ef91911b804f2d186c3c69;p=digest-highwayhash.git diff --git a/lib/Digest/HighwayHash.pm b/lib/Digest/HighwayHash.pm index 108021b..df6ecb4 100644 --- a/lib/Digest/HighwayHash.pm +++ b/lib/Digest/HighwayHash.pm @@ -8,7 +8,7 @@ use parent qw/Exporter/; our @EXPORT_OK = qw/highway_hash64 highway_hash128 highway_hash256/; our @EXPORT = @EXPORT_OK; -our $VERSION = '0.000_001'; +our $VERSION = '0.001'; use Math::Int64; @@ -22,7 +22,7 @@ __END__ =head1 NAME -Digest::HighwayHash - fast strong hash function +Digest::HighwayHash - XS fast strong keyed hash function =head1 SYNOPSIS @@ -36,9 +36,34 @@ Digest::HighwayHash - fast strong hash function =head1 DESCRIPTION -HighwayHash is a fast and strong hash function, documented at +HighwayHash is a fast and strong keyed hash function, documented at L. +Three functions are exported by this module, all by default: + +=over + +=item B I<\@key>, I<$input> + +Compute the 64-bit HighwayHash of I<$input>, using I<\@key> as a key. +The key must be a 4-element arrayref, with each element either a +number or (on Perls without 64-bit numbers) a L object. The result is a single number or (on Perls without 64-bit numbers) a L object. + +=item B I<\@key>, I<$input> + +Compute the 128-bit HighwayHash of I<$input>, using I<\@key> as a key. +The key must be a 4-element arrayref, with each element either a +number or (on Perls without 64-bit numbers) a L object. The result is an array of exactly two numbers or (on Perls without 64-bit numbers) L objects. + +=item B I<\@key>, I<$input> + +Compute the 256-bit HighwayHash of I<$input>, using I<\@key> as a key. +The key must be a 4-element arrayref, with each element either a +number or (on Perls without 64-bit numbers) a L object. The result is an array of exactly four numbers or (on Perls without 64-bit numbers) L objects. + + +=back + =head1 SEE ALSO L