lib/Crypt/Perl/X509/Extension/subjectKeyIdentifier.pm

filter: Statementstmt 96.0% 24 / 25 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 91.6% 33 / 36 CC 2 SCAR 2.3
CC
2
Cov
93%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/Crypt/Perl/RSA/PKCS1_v1_5.pm ↑ Summary lib/Crypt/Perl/ECDSA/Generate.pm »
1 package Crypt::Perl::X509::Extension::subjectKeyIdentifier;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =encoding utf-8
7  
8 =head1 NAME
9  
10 Crypt::Perl::X509::Extension::keyUsage
11  
12 =head1 SYNOPSIS
13  
14 my $usage_obj = Crypt::Perl::X509::Extension::subjectKeyIdentifier->new(
15 $subj_key_id #octet string
16 );
17  
18 =head1 SEE ALSO
19  
20 L<https://tools.ietf.org/html/rfc5280#section-4.2.1.2>
21  
22 =cut
23  
24 1 ▶use parent qw( Crypt::Perl::X509::Extension );
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 1 ▶use Crypt::Perl::X ();
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 use constant {
29 1 OID => '2.5.29.14',
30 CRITICAL => 0,
31 1 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 1 ▶use constant ASN1 => <<END;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 subjectKeyIdentifier ::= OCTET STRING
35 END
36  
37 sub new {
38 6 ▶ my ($class, $octet_str) = @_;
Subroutine new: called CC=2 SCAR=7.6
Pod undocumented
39  
40 6 ▶ if (!length $octet_str) {
Branch: 1 branch
BranchTrueFalseTotal
unless (length $octet_str) 0 6 6
41 0 die Crypt::Perl::X::create('Generic', 'Need data!');
42 }
43  
44 6 return bless \$octet_str, $class;
45 }
46  
47 sub _encode_params {
48 6 ▶ my ($self) = @_;
Subroutine _encode_params: called CC=1 SCAR=0.0
49  
50 6 return $$self;
51 }
52  
53 1 1;
« lib/Crypt/Perl/RSA/PKCS1_v1_5.pm ↑ Summary lib/Crypt/Perl/ECDSA/Generate.pm »