RSA: loading XML private keys didn't always work

This commit is contained in:
terrafrost 2013-06-20 17:05:29 -05:00
parent 30408ff8fb
commit 4de71168d8

View File

@ -1311,9 +1311,6 @@ class Crypt_RSA {
break;
case 'D':
$this->current = &$this->components['privateExponent'];
break;
default:
unset($this->current);
}
$this->current = '';
}
@ -1334,6 +1331,7 @@ class Crypt_RSA {
return;
}
$this->current = new Math_BigInteger(base64_decode($this->current), 256);
unset($this->current);
}
/**