line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::PK; |
2
|
|
|
|
|
|
|
|
3
|
13
|
|
|
13
|
|
71
|
use strict; |
|
13
|
|
|
|
|
25
|
|
|
13
|
|
|
|
|
406
|
|
4
|
13
|
|
|
13
|
|
56
|
use warnings; |
|
13
|
|
|
|
|
22
|
|
|
13
|
|
|
|
|
540
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.080'; |
6
|
|
|
|
|
|
|
|
7
|
13
|
|
|
13
|
|
67
|
use Carp; |
|
13
|
|
|
|
|
19
|
|
|
13
|
|
|
|
|
1784
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _ssh_parse { |
10
|
20
|
|
|
20
|
|
48
|
my $raw = shift; |
11
|
20
|
50
|
|
|
|
58
|
return unless defined $raw; |
12
|
20
|
|
|
|
|
37
|
my $len = length($raw); |
13
|
20
|
|
|
|
|
39
|
my @parts = (); |
14
|
20
|
|
|
|
|
35
|
my $i = 0; |
15
|
20
|
|
|
|
|
32
|
while (1) { |
16
|
84
|
100
|
|
|
|
162
|
last unless $i + 4 <= $len; |
17
|
64
|
|
|
|
|
149
|
my $part_len = unpack("N4", substr($raw, $i, 4)); |
18
|
64
|
50
|
|
|
|
129
|
last unless $i + 4 + $part_len <= $len; |
19
|
64
|
|
|
|
|
128
|
push @parts, substr($raw, $i + 4, $part_len); |
20
|
64
|
|
|
|
|
88
|
$i += $part_len + 4; |
21
|
|
|
|
|
|
|
} |
22
|
20
|
|
|
|
|
110
|
return @parts; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Crypt::PK - [internal only] |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |