Subject: | Simple mistake in Crypt::RSA::Key::Private::AUTOLOAD() |
Date: | Sun, 01 Apr 2007 15:45:51 +0300 |
To: | bug-Crypt-RSA [...] rt.cpan.org |
From: | "Antti S. Lankila" <alankila [...] elma.fi> |
Makes it impossible to initialise these objects from 0x12345678 values
in spirit of: $key->n($hex_modulus);
if ($value =~ /^0x/) {
$self->{private}->{"_$key"} =
$self->{Checked} = 0;
Math::Pari::_hex_cvt($value);
Clearly, $self->{Checked} = 0 has been copypasted in middle of
statement. Unfortunately, nothing detects this error.
--
Antti