line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::Mask; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
292
|
use strict; |
|
6
|
|
|
|
|
19
|
|
|
6
|
|
|
|
|
147
|
|
4
|
6
|
|
|
6
|
|
39
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
147
|
|
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
26
|
use Module::Load (); |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
678
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my $_loaded_rng; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub create { |
11
|
53
|
|
|
53
|
0
|
249
|
return pack 'L', ( ( (rand 65536) << 16 ) | (rand 65536) ); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub apply { |
15
|
114
|
|
|
114
|
0
|
1001
|
my ($payload_sr, $mask) = @_; |
16
|
|
|
|
|
|
|
|
17
|
114
|
|
|
|
|
260
|
$mask = $mask x (int(length($$payload_sr) / 4) + 1); |
18
|
|
|
|
|
|
|
|
19
|
114
|
|
|
|
|
169
|
substr($mask, length($$payload_sr)) = q<>; |
20
|
|
|
|
|
|
|
|
21
|
114
|
|
|
|
|
159
|
$$payload_sr .= q<>; |
22
|
114
|
|
|
|
|
170
|
$$payload_sr ^= $mask; |
23
|
|
|
|
|
|
|
|
24
|
114
|
|
|
|
|
195
|
return; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |