diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index 20883ee1..641162fe 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -958,7 +958,7 @@ class RSA function setPrivateKey($key = false, $type = false) { if ($key === false && !empty($this->publicExponent)) { - $rsa->publicExponent = false; + $this->publicExponent = false; return true; } diff --git a/tests/Unit/Crypt/RSA/LoadKeyTest.php b/tests/Unit/Crypt/RSA/LoadKeyTest.php index 5f84e698..6cc79b21 100644 --- a/tests/Unit/Crypt/RSA/LoadKeyTest.php +++ b/tests/Unit/Crypt/RSA/LoadKeyTest.php @@ -350,6 +350,7 @@ Z2sKniRCcDT1ZP4= $this->assertTrue($result); } +<<<<<<< HEAD public function testPKCS1EncryptionChange() { $rsa = new RSA();