| blib/lib/Crypt/Misc.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 24 | 37 | 64.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 71 | 0 | 2 | 290 | $alphabet =~ /^[a-zA-Z0-9]{58}$/ and $base58 =~ /^[$alphabet]+$/ |
| 84 | 0 | 25 | 265 | defined $base58 and length $base58 > 0 |
| 110 | 0 | 0 | 28 | defined $obj1 && defined $obj2 |
| 130 | 16 | 0 | 10 | $cipher_name and $iv_hex |
| 16 | 0 | 10 | $cipher_name and $iv_hex and $ptype | |
| 0 | 0 | 10 | $cipher_name and $iv_hex and $ptype and $ptype eq "4,ENCRYPTED" | |
| 142 | 1 | 3 | 33 | defined $header_name and $header_name =~ /^[0-9A-Za-z ]+$/ |
| 240 | 1 | 0 | 19 | $cipher and $mode |
| 247 | 0 | 0 | 19 | $klen and $ilen |
| line | l | !l | condition |
|---|---|---|---|
| 125 | 10 | 16 | $headers || '' |
| 147 | 7 | 2 | $cipher_name ||= "AES-256-CBC" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 110 | 0 | 2 | 26 | not defined $obj1 && defined $obj2 or $obj1 ne $obj2 |
| 241 | 2 | 17 | 0 | $trans{$cipher} || $cipher |