blib/lib/Crypt/SaltedHash.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 24 | 75.0 |
line | true | false | branch |
---|---|---|---|
192 | 0 | 9 | if $options{'algorithm'} =~ /SHA$/ |
240 | 6 | 4 | $$self{'salt'} =~ /^HEX\{(.*)\}$/i ? : |
252 | 0 | 0 | $$self{'salt'} =~ /^HEX\{(.*)\}$/i ? : |
294 | 3 | 1 | if $scheme |
335 | 1 | 8 | if $parts[-1] eq '1' |
348 | 3 | 1 | if ($algorithm =~ /^S(.*)$/) |
352 | 3 | 0 | if ($algorithm =~ /([a-zA-Z]+)([0-9]+)/) |
360 | 0 | 3 | if $name =~ /^HMAC(.*)$/ |
361 | 0 | 3 | unless $name =~ /MD$/ |
373 | 1 | 3 | unless $_[0] =~ /{([^}]*)/ |
379 | 1 | 7 | unless $_[0] =~ /}(.*)/ |
394 | 4 | 84 | $i == 0 ? : |