| line |
true |
false |
branch |
|
20
|
5 |
19 |
unless (defined $bytes) |
|
23
|
7 |
12 |
if (ord substr($bytes, 0, 1) == 2) { } |
|
|
12 |
0 |
elsif (ord substr($bytes, 1, 1) == 112) { } |
|
30
|
2 |
22 |
if ($@) |
|
38
|
1 |
6 |
unless ($keys) |
|
42
|
1 |
5 |
unless ($keys->is_valid($now)) |
|
46
|
0 |
5 |
if (ord $version != 2) |
|
50
|
1 |
4 |
unless ($master_key) |
|
54
|
0 |
3 |
unless (defined $master_payload) |
|
59
|
0 |
3 |
unless ($site_key) |
|
63
|
0 |
3 |
unless (defined $identity) |
|
73
|
1 |
2 |
if ($expires < $now->get_epoch_milli) { } |
|
86
|
1 |
11 |
unless ($keys) |
|
90
|
1 |
10 |
unless ($keys->is_valid($now)) |
|
94
|
0 |
10 |
if (_decode_identity_scope($prefix) != $identity_scope) |
|
98
|
1 |
9 |
unless ($master_key) |
|
101
|
0 |
9 |
if (length $master_payload_encrypted > 256) |
|
105
|
0 |
8 |
unless (defined $master_payload) |
|
110
|
0 |
8 |
unless ($site_key) |
|
114
|
0 |
8 |
unless (defined $site_payload) |
|
123
|
2 |
6 |
if ($expires < $now->get_epoch_milli) { } |
|
151
|
1 |
30 |
if ($@) |
|
161
|
0 |
31 |
if ($keys and $key) |
|
166
|
21 |
10 |
if (not $key) { } |
|
|
4 |
6 |
elsif (not $key->is_active($now)) { } |
|
167
|
0 |
21 |
unless ($keys) |
|
170
|
0 |
21 |
unless ($keys->is_valid($now)) |
|
174
|
1 |
20 |
if (defined $request->{'site_id'} and length $request->{'advertising_token'}) { } |
|
|
14 |
6 |
elsif (defined $request->{'site_id'}) { } |
|
181
|
2 |
4 |
unless ($decrypted->{'is_success'}) |
|
188
|
5 |
13 |
unless ($key) |
|
198
|
0 |
19 |
if (defined $iv and length $iv != $GCM_IV_LEN) |
|
217
|
4 |
26 |
unless (defined $bytes) |
|
220
|
19 |
7 |
if ((ord substr($bytes, 0, 1) & 224) == $EncryptedDataTypeV3) { } |
|
225
|
4 |
26 |
if ($@) |
|
234
|
2 |
5 |
if (ord $type != $EncryptedDataType) |
|
237
|
1 |
4 |
if (ord $version != $EncryptedDataVersion) |
|
241
|
1 |
3 |
unless ($key) |
|
256
|
0 |
19 |
if (_decode_identity_scope($identity) != $identity_scope) |
|
259
|
1 |
18 |
if (ord $version != $EncryptedDataVersionV3) |
|
263
|
1 |
17 |
unless ($key) |
|
267
|
0 |
15 |
unless (defined $payload) |
|
320
|
3 |
111 |
unless $ae->decrypt_done($authtag) |