line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::Perl::ASN1::Encodee; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
1396
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
101
|
|
4
|
4
|
|
|
4
|
|
17
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
70
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
1032
|
use Crypt::Perl::ASN1 (); |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
57
|
|
7
|
4
|
|
|
4
|
|
16
|
use Crypt::Perl::X (); |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
492
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub asn1_macro { |
10
|
462
|
|
|
462
|
0
|
894
|
my ($self_or_class) = @_; |
11
|
|
|
|
|
|
|
|
12
|
462
|
|
33
|
|
|
1220
|
my $class = ref($self_or_class) || $self_or_class; |
13
|
|
|
|
|
|
|
|
14
|
462
|
50
|
|
|
|
2608
|
$class =~ m<.+::(.+)> or die Crypt::Perl::X::create('Generic', "Invalid class: “$class”"); |
15
|
|
|
|
|
|
|
|
16
|
462
|
|
|
|
|
2122
|
return $1; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub encode { |
20
|
494
|
|
|
494
|
0
|
1715
|
my ($self) = @_; |
21
|
|
|
|
|
|
|
|
22
|
494
|
|
|
|
|
1735
|
my $asn1 = Crypt::Perl::ASN1->new(); |
23
|
494
|
|
|
|
|
23433
|
$asn1 = $asn1->prepare( $self->ASN1() )->find( $self->asn1_macro() ); |
24
|
|
|
|
|
|
|
|
25
|
494
|
|
|
|
|
9634
|
return $asn1->encode( $self->_encode_params() ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |