Crypt-Perl
view release on metacpan or search on metacpan
util/extract_openssl_curves.pl view on Meta::CPAN
my $oid_ = $oid =~ tr<.><_>r;
$perl .= '#' . ('-' x 70) . $/;
my $esc_cname = $cname =~ tr<-><_>r;
$perl .= "use constant OID_$esc_cname => '$oid';$/$/";
next if $oid_seen{$oid}++;
my $cdata = OpenSSL_Control::curve_data($cname);
try {
my $template_data = Crypt::Perl::ECDSA::ECParameters::normalize($cdata);
$_ = substr($_->as_hex(), 2) for values %$template_data;
$template_data->{'oid'} = $oid_;
$template_data->{'seed'} ||= q<>;
$perl .= ($CURVE_TEMPLATE =~ s[<(.+?)>][$template_data->{$1}]gr);
$perl .= $/;
}
catch {
if ( try { $_->isa('Crypt::Perl::X::ECDSA::CharacteristicTwoUnsupported') } ) {
( run in 0.597 second using v1.01-cache-2.11-cpan-454fe037f31 )