line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::PK; |
2
|
|
|
|
|
|
|
|
3
|
13
|
|
|
13
|
|
90
|
use strict; |
|
13
|
|
|
|
|
27
|
|
|
13
|
|
|
|
|
455
|
|
4
|
13
|
|
|
13
|
|
66
|
use warnings; |
|
13
|
|
|
|
|
25
|
|
|
13
|
|
|
|
|
532
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.079_007'; |
6
|
|
|
|
|
|
|
|
7
|
13
|
|
|
13
|
|
81
|
use Carp; |
|
13
|
|
|
|
|
22
|
|
|
13
|
|
|
|
|
2104
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _ssh_parse { |
10
|
20
|
|
|
20
|
|
42
|
my $raw = shift; |
11
|
20
|
50
|
|
|
|
42
|
return unless defined $raw; |
12
|
20
|
|
|
|
|
32
|
my $len = length($raw); |
13
|
20
|
|
|
|
|
38
|
my @parts = (); |
14
|
20
|
|
|
|
|
32
|
my $i = 0; |
15
|
20
|
|
|
|
|
26
|
while (1) { |
16
|
84
|
100
|
|
|
|
146
|
last unless $i + 4 <= $len; |
17
|
64
|
|
|
|
|
145
|
my $part_len = unpack("N4", substr($raw, $i, 4)); |
18
|
64
|
50
|
|
|
|
125
|
last unless $i + 4 + $part_len <= $len; |
19
|
64
|
|
|
|
|
633
|
push @parts, substr($raw, $i + 4, $part_len); |
20
|
64
|
|
|
|
|
91
|
$i += $part_len + 4; |
21
|
|
|
|
|
|
|
} |
22
|
20
|
|
|
|
|
86
|
return @parts; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Crypt::PK - [internal only] |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |