| line |
true |
false |
branch |
|
132
|
3 |
15 |
if ($attr eq 'salt') { } |
|
|
5 |
10 |
elsif ($attr eq 'salt_base64') { } |
|
|
1 |
9 |
elsif ($attr eq 'salt_random') { } |
|
|
1 |
8 |
elsif ($attr eq 'hash') { } |
|
|
5 |
3 |
elsif ($attr eq 'hash_base64') { } |
|
|
3 |
0 |
elsif ($attr eq 'passphrase') { } |
|
133
|
0 |
3 |
if defined $salt |
|
135
|
0 |
3 |
unless $value == int $value and $value >= 0 and $value < 4096 |
|
140
|
0 |
5 |
if defined $salt |
|
142
|
0 |
5 |
unless $value =~ m[\A[./0-9A-Za-z]{2}\z] |
|
146
|
0 |
1 |
if defined $salt |
|
148
|
0 |
1 |
unless $value == 12 |
|
152
|
0 |
1 |
if defined $hash or defined $passphrase |
|
154
|
0 |
1 |
unless $value =~ /\A[\x00-\xff]{16}\z/ |
|
158
|
0 |
5 |
if defined $hash or defined $passphrase |
|
160
|
0 |
5 |
unless $value =~ m[\A(?:[./0-9A-Za-z]{10}[.26AEIMQUYcgkosw])
{2}\z]x |
|
167
|
0 |
3 |
if defined $hash or defined $passphrase |
|
174
|
0 |
9 |
unless defined $salt |
|
175
|
3 |
6 |
if (defined $passphrase) { } |
|
|
6 |
0 |
elsif (defined $hash) { } |
|
180
|
2 |
1 |
length $passphrase > 8 ? : |