Skip Menu |
 

This queue is for tickets about the Crypt-OpenSSL-EC CPAN distribution.

Report information
The Basics
Id: 101780
Status: resolved
Priority: 0/
Queue: Crypt-OpenSSL-EC

People
Owner: Nobody in particular
Requestors: rwfranks [...] acm.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.6
Fixed in: (no value)



Subject: $eckey->get0_private_key() returns unblessed reference
Download (untitled) / with headers
text/plain 742b
# Script fragment: #!/usr/bin/perl # use 5.18.4; use Crypt::OpenSSL::Bignum 0.04; use Crypt::OpenSSL::EC 0.6; my $nid = 415; # NID_X9_62_prime256v1 my $group = Crypt::OpenSSL::EC::EC_GROUP::new_by_curve_name($nid); my $eckey = Crypt::OpenSSL::EC::EC_KEY::new() || die; Crypt::OpenSSL::EC::EC_KEY::set_group( $eckey, $group ) || die; Crypt::OpenSSL::EC::EC_KEY::generate_key($eckey) || die; my $bignum = $eckey->get0_private_key(); # <---- unblessed ref print $bignum, "\n"; my $content = $bignum->to_bin; print unpack( 'H*', $content ), "\n"; exit; __END__ # produces: SCALAR(0x9402450) Can't call method "to_bin" on unblessed reference at specimen.pl line 20.
Subject: Re: [rt.cpan.org #101780] $eckey->get0_private_key() returns unblessed reference
Date: Wed, 28 Jan 2015 11:16:10 +1000
To: bug-Crypt-OpenSSL-EC [...] rt.cpan.org
From: Mike McCauley <mikem [...] airspayce.com>
Download (untitled) / with headers
text/plain 1.5k
Thanks for reporting this Dick, This has been fixed and uploaded new verison now, also a similar issue in Crypt-OpenSSL-ECDSA was fixed. Cheers. On Tuesday, January 27, 2015 03:43:23 PM Dick Franks via RT wrote: Show quoted text
> Tue Jan 27 15:43:22 2015: Request 101780 was acted upon. > Transaction: Ticket created by rwfranks@acm.org > Queue: Crypt-OpenSSL-EC > Subject: $eckey->get0_private_key() returns unblessed reference > Broken in: 0.6 > Severity: Important > Owner: Nobody > Requestors: rwfranks@acm.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=101780 > > > > # Script fragment: > > #!/usr/bin/perl > # > use 5.18.4; > > use Crypt::OpenSSL::Bignum 0.04; > use Crypt::OpenSSL::EC 0.6; > > my $nid = 415; # NID_X9_62_prime256v1 > my $group = Crypt::OpenSSL::EC::EC_GROUP::new_by_curve_name($nid); > > my $eckey = Crypt::OpenSSL::EC::EC_KEY::new() || die; > Crypt::OpenSSL::EC::EC_KEY::set_group( $eckey, $group ) || die; > Crypt::OpenSSL::EC::EC_KEY::generate_key($eckey) || die; > > > my $bignum = $eckey->get0_private_key(); # <---- unblessed ref > > print $bignum, "\n"; > > my $content = $bignum->to_bin; > > print unpack( 'H*', $content ), "\n"; > > exit; > > __END__ > > # produces: > > SCALAR(0x9402450) > Can't call method "to_bin" on unblessed reference at specimen.pl line 20.
-- Mike McCauley VK4AMM mikem@airspayce.com Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.airspayce.com Phone +61 7 5598-7474


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.