line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::OpenPGP::Key::Secret; |
2
|
4
|
|
|
4
|
|
21
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
138
|
|
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
21
|
use Crypt::OpenPGP::Key; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
109
|
|
5
|
4
|
|
|
4
|
|
23
|
use Crypt::OpenPGP::ErrorHandler; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
113
|
|
6
|
4
|
|
|
4
|
|
22
|
use base qw( Crypt::OpenPGP::Key Crypt::OpenPGP::ErrorHandler ); |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
893
|
|
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
1
|
22
|
sub is_secret { 1 } |
9
|
34
|
|
|
34
|
0
|
213
|
sub all_props { ($_[0]->public_props, $_[0]->secret_props) } |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub public_key { |
12
|
3
|
|
|
3
|
1
|
16
|
my $key = shift; |
13
|
3
|
|
|
|
|
23
|
my @pub = $key->public_props; |
14
|
3
|
|
|
|
|
36
|
my $pub = Crypt::OpenPGP::Key::Public->new($key->alg); |
15
|
3
|
|
|
|
|
15
|
for my $e (@pub) { |
16
|
11
|
|
|
|
|
889
|
$pub->$e($key->$e()); |
17
|
|
|
|
|
|
|
} |
18
|
3
|
|
|
|
|
292
|
$pub; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |