blib/lib/Crypt/PK/ECC.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 67 | 16.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
113 | 0 | 0 | 1 | defined $k and length $k > 0 |
0 | 0 | 0 | defined $x and defined $y | |
147 | 0 | 0 | 0 | $type and $type eq "private" |
0 | 0 | 0 | $type and $type eq "public" | |
148 | 0 | 0 | 0 | $kh->{'pub_x'} and $kh->{'pub_y'} |
0 | 0 | 0 | $kh->{'pub_x'} and $kh->{'pub_y'} and $kh->{'k'} | |
163 | 0 | 0 | 0 | $kh->{'pub_x'} and $kh->{'pub_y'} |
192 | 0 | 0 | 1 | $key->{'pub_x'} and $key->{'pub_y'} |
197 | 0 | 0 | 0 | $key->{'crv'} and $key->{'kty'} |
0 | 0 | 0 | $key->{'crv'} and $key->{'kty'} and $key->{'kty'} eq "EC" | |
0 | 0 | 0 | $key->{'crv'} and $key->{'kty'} and $key->{'kty'} eq "EC" and $key->{'d'} || $key->{'x'} && $key->{'y'} | |
238 | 0 | 0 | 0 | $h and $h->{'kty'} eq "EC" |
253 | 0 | 0 | 3 | $pubkey and $typ =~ /^ecdsa-(.+?)-(.*)$/ |
258 | 0 | 0 | 3 | $pubkey and $typ =~ /^ecdsa-(.+?)-(.*)$/ |
340 | 0 | 0 | 2 | ref $privkey eq "Crypt::PK::ECC" and $privkey->is_private |
line | l | !l | condition |
---|---|---|---|
134 | 9 | 0 | $type || '' |
179 | 0 | 0 | $hash_name ||= "SHA256" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
146 | 0 | 0 | 0 | $curve2jwk{$kh->{'curve_oid'}} || $curve2jwk{lc $kh->{'curve_name'}} || $kh->{'curve_name'} |
192 | 1 | 0 | 0 | $key->{'pub_x'} and $key->{'pub_y'} or $key->{'k'} |
194 | 1 | 0 | 0 | $key->{'curve_name'} || $key->{'curve_oid'} |
197 | 0 | 0 | 0 | $key->{'d'} || $key->{'x'} && $key->{'y'} |
223 | 33 | 4 | 0 | eval { do { $self->_import($data) } } || eval { do { $self->_import_old($data) } } |
264 | 9 | 0 | 0 | eval { do { $self->_import($data) } } || eval { do { $self->_import_old($data) } } || eval { do { $self->_import_pkcs8($data, $password) } } || eval { do { $self->_import_x509($data) } } |