| blib/lib/Crypt/Misc.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 20 | 40 | 50.0 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 67 | 0 | 1 | 290 | $alphabet =~ /^[a-zA-Z0-9]{58}$/ and $base58 =~ /^[$alphabet]+$/ | 
| 79 | 0 | 25 | 265 | defined $base58 and length $base58 > 0 | 
| 124 | 79 | 0 | 33 | $cipher_name and $iv_hex | 
| 79 | 0 | 33 | $cipher_name and $iv_hex and $ptype | |
| 0 | 0 | 33 | $cipher_name and $iv_hex and $ptype and $ptype eq "4,ENCRYPTED" | |
| 180 | 0 | 0 | 1 | defined $a and defined $b | 
| 182 | 1 | 0 | 10 | $i < length $a and $i < length $b | 
| 217 | 0 | 0 | 33 | $cipher and $mode | 
| 224 | 0 | 0 | 33 | $klen and $ilen | 
| line | l | !l | condition | 
|---|---|---|---|
| 119 | 43 | 69 | $headers || '' | 
| 140 | 0 | 0 | $cipher_name ||= "AES-256-CBC" | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 41 | 0 | 0 | 290 | not defined $bytes or length $bytes == 0 | 
| 63 | 0 | 0 | 291 | not defined $base58 or length $base58 == 0 | 
| 218 | 3 | 30 | 0 | $trans{$cipher} || $cipher |