1Crypt::Digest::SHAKE(3)User Contributed Perl DocumentatioCnrypt::Digest::SHAKE(3)
2
3
4

NAME

6       Crypt::Digest::SHAKE - Hash functions SHAKE128, SHAKE256 from SHA3
7       family
8

SYNOPSIS

10          use Crypt::Digest::SHAKE
11
12          $d = Crypt::Digest::SHAKE->new(128);
13          $d->add('any data');
14          $d->addfile('filename.dat');
15          $d->addfile(*FILEHANDLE);
16          $part1 = $d->done(100); # 100 raw bytes
17          $part2 = $d->done(100); # another 100 raw bytes
18          #...
19

DESCRIPTION

21       Provides an interface to the SHA3's sponge function SHAKE.
22

METHODS

24   new
25        $d = Crypt::Digest::SHA3-SHAKE->new($num);
26        # $num ... 128 or 256
27
28   clone
29        $d->clone();
30
31   reset
32        $d->reset();
33
34   add
35        $d->add('any data');
36        #or
37        $d->add('any data', 'more data', 'even more data');
38
39   addfile
40        $d->addfile('filename.dat');
41        #or
42        $d->addfile(*FILEHANDLE);
43
44   done
45        $result_raw = $d->done($len);
46        # can be called multiple times
47

SEE ALSO

49       ·   CryptX, Crypt::Digest
50
51       ·   <http://en.wikipedia.org/wiki/SHA-3>
52
53
54
55perl v5.28.0                      2017-09-15           Crypt::Digest::SHAKE(3)
Impressum