line |
true |
false |
branch |
17
|
0 |
22 |
unless $subtype =~ /^2[abxy]$/ |
18
|
0 |
22 |
if $cost < 4 or $cost > 31 |
19
|
0 |
22 |
if length $salt != 16 |
31
|
1 |
0 |
if ($hash_algorithm) { } |
35
|
0 |
1 |
unless $hash =~ s/ ^ \$ ($subtype_qr) \$ ($cost_qr) \$ ($salt_qr) /\$bcrypt-sha256\$v=2,t=$1,r=$2\$$3\$/x |
45
|
3 |
0 |
if ($hash =~ s/ ^ \$ bcrypt-sha256 \$ v=2,t=($subtype_qr),r=($cost_qr) \$ ($salt_qr) \$ /\$$1\$$2\$$3/x) { } |
55
|
3 |
0 |
if ($hash =~ / \A \$ ($subtype_qr) \$ ($cost_qr) \$ /x) { } |
|
0 |
0 |
elsif ($hash =~ / ^ \$ bcrypt-sha256 \$ v=2,t=($subtype_qr),r=($cost_qr) \$ /x) { } |