blib/lib/Crypt/PBE/PBKDF1.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 22 | 44 | 50.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
121 | 4 | 8 | 6 | $hash ne 'md2' and $hash ne 'md5' |
12 | 6 | 0 | $hash ne 'md2' and $hash ne 'md5' and $hash ne 'sha1' | |
130 | 10 | 8 | 0 | $hash eq 'md5' and $dkLen > 16 |
14 | 4 | 0 | $hash eq 'md2' and $dkLen > 16 | |
12 | 6 | 0 | $hash eq 'sha1' and $dkLen > 20 |
line | l | !l | condition |
---|---|---|---|
42 | 0 | 1 | delete $params{'count'} || 1000 |
43 | 0 | 1 | delete $params{'hash'} || 'sha1' |
115 | 18 | 0 | delete $params{'hash'} || 'sha1' |
118 | 18 | 0 | delete $params{'count'} || 1000 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
40 | 1 | 0 | 0 | delete $params{'password'} || croak('Specify password') |
41 | 1 | 0 | 0 | delete $params{'salt'} || croak('Specify salt') |
46 | 0 | 0 | 1 | $hash eq 'md5' or $hash eq 'md2' |
116 | 18 | 0 | 0 | delete $params{'password'} || croak('Specify password') |
117 | 18 | 0 | 0 | delete $params{'salt'} || croak('Specify salt') |
130 | 0 | 0 | 18 | $hash eq 'md5' and $dkLen > 16 or $hash eq 'md2' and $dkLen > 16 |
0 | 0 | 18 | $hash eq 'md5' and $dkLen > 16 or $hash eq 'md2' and $dkLen > 16 or $hash eq 'sha1' and $dkLen > 20 |