| 1 | package Crypt::Perl::X::ECDSA::CharacteristicTwoUnsupported; | ||||||||||
| 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 | 1 | ▶ | use parent 'Crypt::Perl::X::Base'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | sub new { | ||||||||||
| 9 | 120 | ▶ | my ($class, $curve_name) = @_; | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.6
Pod
undocumented
| |||||||||||
| 10 | |||||||||||
| 11 | 120 | ▶ | if ($curve_name) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 0 | return $class->SUPER::new( "This library does not support ECDSA curves that use Characteristic-2 fields, like “$curve_name”.", { curve_name => $curve_name } ); | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 120 | return $class->SUPER::new( "This library does not support ECDSA curves that use Characteristic-2 fields." ); | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 1 | 1; | |||||||||