blib/lib/Crypt/ScryptKDF.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 53 | 45.2 |
line | l | !l | condition |
---|---|---|---|
52 | 0 | 0 | warn "scrypt_raw: 2 or 6 parameters required\n" and return undef |
58 | 0 | 0 | warn "scrypt_b64: 2 or 6 parameters required\n" and return undef |
65 | 0 | 0 | warn "scrypt_hex: 2 or 6 parameters required\n" and return undef |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
73 | 0 | 0 | 9 | defined $key and defined $salt |
0 | 0 | 9 | defined $key and defined $salt and defined $N | |
0 | 0 | 9 | defined $key and defined $salt and defined $N and defined $r | |
0 | 0 | 9 | defined $key and defined $salt and defined $N and defined $r and defined $p | |
82 | 0 | 0 | 1 | defined $salt and defined $hash |
85 | 0 | 0 | 1 | defined $salt and defined $hash |
87 | 0 | 0 | 1 | $N > 0 and $r >= 0 |
0 | 0 | 1 | $N > 0 and $r >= 0 and $p >= 0 | |
126 | 15 | 0 | 4 | ref $salt eq 'SCALAR' and $$salt =~ /^\d+$/ |
133 | 3 | 2 | 14 | defined $a and defined $b |
135 | 10 | 4 | 125 | $i < length $a and $i < length $b |
line | l | !l | condition |
---|---|---|---|
18 | 7 | 0 | shift() || 32 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
52 | 1 | 1 | 0 | @_ == 2 or @_ == 6 |
58 | 1 | 2 | 0 | @_ == 2 or @_ == 6 |
65 | 1 | 4 | 0 | @_ == 2 or @_ == 6 |
121 | 0 | 0 | 19 | $N <= 0 or ($N & $N - 1) != 0 |