line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::PK; |
2
|
|
|
|
|
|
|
|
3
|
13
|
|
|
13
|
|
90
|
use strict; |
|
13
|
|
|
|
|
32
|
|
|
13
|
|
|
|
|
449
|
|
4
|
13
|
|
|
13
|
|
63
|
use warnings; |
|
13
|
|
|
|
|
22
|
|
|
13
|
|
|
|
|
529
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.080_001'; |
6
|
|
|
|
|
|
|
|
7
|
13
|
|
|
13
|
|
70
|
use Carp; |
|
13
|
|
|
|
|
26
|
|
|
13
|
|
|
|
|
2141
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _ssh_parse { |
10
|
20
|
|
|
20
|
|
42
|
my $raw = shift; |
11
|
20
|
50
|
|
|
|
46
|
return unless defined $raw; |
12
|
20
|
|
|
|
|
43
|
my $len = length($raw); |
13
|
20
|
|
|
|
|
33
|
my @parts = (); |
14
|
20
|
|
|
|
|
34
|
my $i = 0; |
15
|
20
|
|
|
|
|
23
|
while (1) { |
16
|
84
|
100
|
|
|
|
139
|
last unless $i + 4 <= $len; |
17
|
64
|
|
|
|
|
139
|
my $part_len = unpack("N4", substr($raw, $i, 4)); |
18
|
64
|
50
|
|
|
|
116
|
last unless $i + 4 + $part_len <= $len; |
19
|
64
|
|
|
|
|
119
|
push @parts, substr($raw, $i + 4, $part_len); |
20
|
64
|
|
|
|
|
95
|
$i += $part_len + 4; |
21
|
|
|
|
|
|
|
} |
22
|
20
|
|
|
|
|
87
|
return @parts; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Crypt::PK - [internal only] |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |