« blib/lib/Crypt/Perl/X/ECDSA/NoCurveForName.pm
↑ Summary
blib/lib/Crypt/Perl/X/ECDSA/NoCurveForParameters.pm »
| 1 | package Crypt::Perl::X::ECDSA::NoCurveForOID; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use parent 'Crypt::Perl::X::Base'; | ||
| 7 | |||
| 8 | sub new { | ||
| 9 | my ($class, $oid) = @_; | ||
| 10 | |||
| 11 | return $class->SUPER::new( "This library has no curve parameters that match the OID “$oid”.", { oid => $oid } ); | ||
| 12 | } | ||
| 13 | |||
| 14 | 1; |