From 4de71168d8b647cdc8165f44d4c86f8c053bbd8f Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 20 Jun 2013 17:05:29 -0500 Subject: [PATCH] RSA: loading XML private keys didn't always work --- phpseclib/Crypt/RSA.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index e919b002..71ef1a5f 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -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); } /** @@ -2690,4 +2688,4 @@ class Crypt_RSA { return $this->_rsassa_pss_verify($message, $signature); } } -} +} \ No newline at end of file