line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::Perl::ASN1::Encodee; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
1714
|
use strict; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
95
|
|
4
|
5
|
|
|
5
|
|
18
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
78
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
878
|
use Crypt::Perl::ASN1 (); |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
70
|
|
7
|
5
|
|
|
5
|
|
20
|
use Crypt::Perl::X (); |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
557
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub asn1_macro { |
10
|
467
|
|
|
467
|
0
|
838
|
my ($self_or_class) = @_; |
11
|
|
|
|
|
|
|
|
12
|
467
|
|
33
|
|
|
1110
|
my $class = ref($self_or_class) || $self_or_class; |
13
|
|
|
|
|
|
|
|
14
|
467
|
50
|
|
|
|
2451
|
$class =~ m<.+::(.+)> or die Crypt::Perl::X::create('Generic', "Invalid class: “$class”"); |
15
|
|
|
|
|
|
|
|
16
|
467
|
|
|
|
|
1654
|
return $1; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub encode { |
20
|
499
|
|
|
499
|
0
|
1534
|
my ($self) = @_; |
21
|
|
|
|
|
|
|
|
22
|
499
|
|
|
|
|
1469
|
my $asn1 = Crypt::Perl::ASN1->new(); |
23
|
499
|
|
|
|
|
20304
|
$asn1 = $asn1->prepare( $self->ASN1() )->find( $self->asn1_macro() ); |
24
|
|
|
|
|
|
|
|
25
|
499
|
|
|
|
|
8009
|
return $asn1->encode( $self->_encode_params() ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |