| 1 | package Crypt::PBKDF2::Hash::HMACSHA1; | ||
| 2 | # ABSTRACT: HMAC-SHA1 support for Crypt::PBKDF2 using Digest::SHA | ||
| 3 | 2 | our $VERSION = '0.261630'; # VERSION | |
| 4 | 2 | our $AUTHORITY = 'cpan:ARODLAND'; # AUTHORITY | |
| 5 | 2 | ▶ | use Moo 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use strictures 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 2 | ▶ | use Digest::SHA (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use Carp qw(croak); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 2 | with 'Crypt::PBKDF2::Hash'; | |
| 12 | |||
| 13 | 9 | ▶ | sub hash_len { |
|
Subroutine
hash_len: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 9 | return 20; | |
| 15 | } | ||
| 16 | |||
| 17 | 8509 | ▶ | sub generate { |
|
Subroutine
generate: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 8509 | my $self = shift; # ($data, $key) | |
| 19 | 8509 | return Digest::SHA::hmac_sha1(@_); | |
| 20 | } | ||
| 21 | |||
| 22 | 0 | ▶ | sub to_algo_string { |
|
Subroutine
to_algo_string: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 23 | 0 | return; | |
| 24 | } | ||
| 25 | |||
| 26 | 0 | ▶ | sub from_algo_string { |
|
Subroutine
from_algo_string: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 27 | 0 | croak "No argument expected"; | |
| 28 | } | ||
| 29 | |||
| 30 | 2 | 1; | |
| 31 | |||
| 32 | __END__ | ||