Initial commit
[digest-highwayhash.git] / lib / Digest / HighwayHash.pm
CommitLineData
096619f2
MG
1package Digest::HighwayHash;
2
3use 5.014000;
4use strict;
5use warnings;
6use parent qw/Exporter/;
7
8our @EXPORT_OK = qw/highway_hash64 highway_hash128 highway_hash256/;
9our @EXPORT = @EXPORT_OK;
10
11our $VERSION = '0.000_001';
12
13use Math::Int64;
14
15require XSLoader;
16XSLoader::load('Digest::HighwayHash', $VERSION);
17
181;
19__END__
20
21=encoding utf-8
22
23=head1 NAME
24
25Digest::HighwayHash - fast strong hash function
26
27=head1 SYNOPSIS
28
29 use Digest::HighwayHash;
30 say highway_hash64 [1, 2, 3, 4], 'hello';
31 # 11956820856122239241
32 say join ' ', @{highway_hash128([1, 2, 3, 4], 'hello')};
33 # 3048112761216189476 13900443277579286659
34 say join ' ', @{highway_hash256([1, 2, 3, 4], 'hello')};
35 # 8099666330974151427 17027479935588128037 4015249936799013189 10027181291351549853
36
37=head1 DESCRIPTION
38
39HighwayHash is a fast and strong hash function, documented at
40L<https://github.com/google/highwayhash>.
41
42=head1 SEE ALSO
43
44L<https://github.com/google/highwayhash>
45
46=head1 AUTHOR
47
48Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
49
50=head1 COPYRIGHT AND LICENSE
51
52Copyright (C) 2018 by Marius Gavrilescu
53
54This library is free software; you can redistribute it and/or modify
55it under the same terms as Perl itself, either Perl version 5.24.1 or,
56at your option, any later version of Perl 5 you may have available.
57
58
59=cut
This page took 0.011496 seconds and 4 git commands to generate.