1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-12 09:09:39 +01:00

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